aboutsummaryrefslogtreecommitdiff
path: root/notmuch.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-25 15:53:27 -0700
committerCarl Worth <cworth@cworth.org>2009-10-25 15:53:27 -0700
commit884ac59256d19db5ee25d976a4f5e60cce51d7d5 (patch)
treec1394ecd892a20acad13b5b742e1a655dd5f2db3 /notmuch.c
parentcc48812cb55e046a77ce1b4aad33566acc5fbd47 (diff)
Re-enable the warning for unused parameters.
It's easy enough to squelch the warning with an __attribute__ ((unused)) and it might just catch something for us in the future.
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/notmuch.c b/notmuch.c
index 10782d4..d98935b 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -43,6 +43,8 @@
#include <glib.h> /* g_strdup_printf */
+#define unused(x) x __attribute__ ((unused))
+
/* There's no point in continuing when we've detected that we've done
* something wrong internally (as opposed to the user passing in a
* bogus value).
@@ -399,7 +401,7 @@ count_files (const char *path, int *count)
}
int
-setup_command (int argc, char *argv[])
+setup_command (unused (int argc), unused (char *argv[]))
{
notmuch_database_t *notmuch = NULL;
char *default_path, *mail_directory = NULL;
@@ -525,7 +527,7 @@ setup_command (int argc, char *argv[])
}
int
-new_command (int argc, char *argv[])
+new_command (unused (int argc), unused (char *argv[]))
{
notmuch_database_t *notmuch;
const char *mail_directory;
@@ -667,7 +669,7 @@ search_command (int argc, char *argv[])
}
int
-show_command (int argc, char *argv[])
+show_command (unused (int argc), unused (char *argv[]))
{
fprintf (stderr, "Error: show is not implemented yet.\n");
return 1;