aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-02-14 22:28:55 -0400
committerDavid Bremner <david@tethera.net>2021-02-14 22:28:55 -0400
commit1b2ec7578e7dd442bd76d620564553aaa70e9e9b (patch)
treeab77dfd39dd642a4bff2a7e48c9194d145f0414e /lib
parent439d1ef814551d2687bd4b1596bb593d32d2f0b5 (diff)
lib: use a stricter unused macro
This would have caught bugs like the one corrected in the previous commit.
Diffstat (limited to 'lib')
-rw-r--r--lib/notmuch-private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h
index 2fbf7ab9..2f5ccd6a 100644
--- a/lib/notmuch-private.h
+++ b/lib/notmuch-private.h
@@ -76,7 +76,7 @@ NOTMUCH_BEGIN_DECLS
#define NOTMUCH_CLEAR_BIT(valp, bit) \
(_NOTMUCH_VALID_BIT (bit) ? (*(valp) &= ~(1ull << (bit))) : *(valp))
-#define unused(x) x __attribute__ ((unused))
+#define unused(x) x ## _unused __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.