Compile cleanly with clang++

This commit is contained in:
Nigel Tao committed 2019-04-07 16:16:14 +10:00
1 parent 3c86337cac
commit d8b5128c09
5 files changed
+26 -13

No files matched your search

+6
View File
@@ -57,6 +57,12 @@
#define WUFFS_BASE__MAYBE_STATIC
#endif
#if defined(__clang__)
#define WUFFS_BASE__POTENTIALLY_UNUSED_FIELD __attribute__((unused))
#else
#define WUFFS_BASE__POTENTIALLY_UNUSED_FIELD
#endif
// Clang also defines "__GNUC__".
#if defined(__GNUC__)
#define WUFFS_BASE__POTENTIALLY_UNUSED __attribute__((unused))