From ed5c6be2f1c3fa492b3642682dd2363dbc1027df Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 23 Jan 2015 16:46:30 +0100 Subject: util/list: disable gcc5 warning This file has been removed in newer MPD versions, so don't care about it now. --- src/util/list.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/util') 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. -- cgit v1.2.3