Avoid "defined but not used" for consts

This commit is contained in:
Nigel Tao committed 2019-02-02 13:34:50 +11:00
1 parent 11a6819be9
commit 70958ea914
6 files changed
+991 -895

No files matched your search

@@ -59,8 +59,10 @@
// Clang also defines "__GNUC__".
#if defined(__GNUC__)
#define WUFFS_BASE__POTENTIALLY_UNUSED __attribute__((unused))
#define WUFFS_BASE__WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
#define WUFFS_BASE__POTENTIALLY_UNUSED
#define WUFFS_BASE__WARN_UNUSED_RESULT
#endif