aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/util/list.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/list.h b/src/util/list.h
index 12628efc6..fdab47675 100644
--- a/src/util/list.h
+++ b/src/util/list.h
@@ -27,6 +27,11 @@
#include <glib.h>
+#ifdef __clang__
+/* allow typeof() */
+#pragma GCC diagnostic ignored "-Wlanguage-extension-token"
+#endif
+
/**
* container_of - cast a member of a structure out to the containing structure
* @ptr: the pointer to the member.