X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=notmuch.c;h=d98935bd4f73d2045f28466a9ac5156f40c21ac4;hb=884ac59256d19db5ee25d976a4f5e60cce51d7d5;hp=10782d4deadf9c2979a44c02541fdd351b298ca0;hpb=cc48812cb55e046a77ce1b4aad33566acc5fbd47;p=obsolete%2Fnotmuch-old diff --git a/notmuch.c b/notmuch.c index 10782d4d..d98935bd 100644 --- a/notmuch.c +++ b/notmuch.c @@ -43,6 +43,8 @@ #include /* 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;