aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-25 15:39:53 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-25 15:52:14 -0700
commitcc48812cb55e046a77ce1b4aad33566acc5fbd47 (patch)
tree4f66f6c647f0ae7ac5eec68732bc9b6706b3beaf /notmuch.c
parent067c547b236133cacbe7192b99bcd5487a08f7c8 (diff)
Add -Wextra and fix warnings.
When adding -Wextra we also add -Wno-ununsed-parameters since that function means well enough, but is really annoying in practice. So the warnings we fix here are basically all comparsions between signed and unsigned values.
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/notmuch.c b/notmuch.c
index c5fef0e8..10782d4d 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -755,7 +755,8 @@ restore_command (int argc, char *argv[])
FILE *input;
notmuch_database_t *notmuch = NULL;
char *line = NULL;
- size_t line_size, line_len;
+ size_t line_size;
+ ssize_t line_len;
regex_t regex;
int rerr;
int ret = 0;
@@ -893,7 +894,7 @@ void
usage (void)
{
command_t *command;
- int i;
+ unsigned int i;
fprintf (stderr, "Usage: notmuch <command> [args...]\n");
fprintf (stderr, "\n");
@@ -911,7 +912,7 @@ int
main (int argc, char *argv[])
{
command_t *command;
- int i;
+ unsigned int i;
if (argc == 1)
return setup_command (0, NULL);