diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/list.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/list.h b/src/util/list.h index 73d99befa..c07565cb7 100644 --- a/src/util/list.h +++ b/src/util/list.h @@ -30,6 +30,10 @@ #pragma GCC diagnostic ignored "-Wlanguage-extension-token" #endif +#if defined(__GNUC__) && __GNUC__ >= 5 +#pragma GCC diagnostic ignored "-Winvalid-offsetof" +#endif + /** * container_of - cast a member of a structure out to the containing structure * @ptr: the pointer to the member. |