]> git.notmuchmail.org Git - notmuch/commitdiff
lib: use a stricter unused macro
authorDavid Bremner <david@tethera.net>
Mon, 15 Feb 2021 02:28:55 +0000 (22:28 -0400)
committerDavid Bremner <david@tethera.net>
Mon, 15 Feb 2021 02:28:55 +0000 (22:28 -0400)
This would have caught bugs like the one corrected in the previous commit.

lib/notmuch-private.h

index 2fbf7ab9fde06d62c9de45ca5ea8856e97bbc1d8..2f5ccd6ae0c37abdeb4520dcfe4683e437b5cba6 100644 (file)
@@ -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.