From 69d3c611aae06924982ebb3cdcd0e11b8d250e2a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 19 Mar 2012 18:39:05 +0100 Subject: util/list: allow typeof() with clang --- src/util/list.h | 5 +++++ 1 file changed, 5 insertions(+) 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 +#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. -- cgit v1.2.3