From: Zbigniew Jędrzejewski-Szmek Date: Fri, 27 Jan 2017 06:08:08 +0000 (-0500) Subject: journal/lookup3: silence gcc 7 implicit-fallthrough warning X-Git-Tag: v234~592^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ae50101aabf1c162cbab6d87062e3c6dc0a5f055;p=platform%2Fupstream%2Fsystemd.git journal/lookup3: silence gcc 7 implicit-fallthrough warning This file doesn't include any of our headers, so just use the pragma without defining it in macros.h --- diff --git a/src/journal/lookup3.c b/src/journal/lookup3.c index d8f1a49..ec725ce 100644 --- a/src/journal/lookup3.c +++ b/src/journal/lookup3.c @@ -48,6 +48,10 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy. # include /* attempt to define endianness */ #endif +#if __GNUC__ >= 7 +_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") +#endif + /* * My best guess at if you are big-endian or little-endian. This may * need adjustment.