diff options
author | Max Kellermann <max@duempel.org> | 2012-03-19 18:39:05 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-03-19 20:37:25 +0100 |
commit | 69d3c611aae06924982ebb3cdcd0e11b8d250e2a (patch) | |
tree | 46f9ec5247d2745405574143db08ad9268953e3f /src/util | |
parent | 36827e11346cc3076e608ae5137afb0f7fb7c65a (diff) | |
download | mpd-69d3c611aae06924982ebb3cdcd0e11b8d250e2a.tar.gz mpd-69d3c611aae06924982ebb3cdcd0e11b8d250e2a.tar.xz mpd-69d3c611aae06924982ebb3cdcd0e11b8d250e2a.zip |
util/list: allow typeof() with clang
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/list.h | 5 |
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. |