From 884ac59256d19db5ee25d976a4f5e60cce51d7d5 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sun, 25 Oct 2009 15:53:27 -0700 Subject: 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. --- notmuch-private.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'notmuch-private.h') diff --git a/notmuch-private.h b/notmuch-private.h index be1fb63..aac67b2 100644 --- a/notmuch-private.h +++ b/notmuch-private.h @@ -72,6 +72,8 @@ _internal_error (const char *format, ...) PRINTF_ATTRIBUTE (1, 2); _internal_error (format " (%s).\n", \ ##__VA_ARGS__, __location__) +#define unused(x) x __attribute__ ((unused)) + /* Thanks to Andrew Tridgell's (SAMBA's) talloc for this definition of * unlikely. The talloc source code comes to us via the GNU LGPL v. 3. */ -- cgit v1.2.3