aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-19 18:39:05 +0100
committerMax Kellermann <max@duempel.org>2012-03-19 20:37:25 +0100
commit69d3c611aae06924982ebb3cdcd0e11b8d250e2a (patch)
tree46f9ec5247d2745405574143db08ad9268953e3f /src/util
parent36827e11346cc3076e608ae5137afb0f7fb7c65a (diff)
util/list: allow typeof() with clang
Diffstat (limited to 'src/util')
-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 12628efc..fdab4767 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.