summaryrefslogtreecommitdiff
path: root/notmuch-private.h
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-private.h
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-private.h')
-rw-r--r--notmuch-private.h2
1 files changed, 2 insertions, 0 deletions
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.
*/