journal/lookup3: silence gcc 7 implicit-fallthrough warning
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 27 Jan 2017 06:08:08 +0000 (01:08 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 31 Jan 2017 19:04:55 +0000 (14:04 -0500)
This file doesn't include any of our headers, so just use the pragma
without defining it in macros.h

src/journal/lookup3.c

index d8f1a49..ec725ce 100644 (file)
@@ -48,6 +48,10 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy.
 # include <endian.h>    /* 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.