util/list: allow typeof() with clang
This commit is contained in:
parent
36827e1134
commit
69d3c611aa
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user