From 06eebd4543196ded36fa9b8b9544195b38b24ef2 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 14 Aug 2017 20:08:33 +0300 Subject: Fix or hide warnings from GCC 7's -Wimplicit-fallthrough. --- src/liblzma/lzma/lzma_decoder.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/liblzma/lzma/lzma_decoder.c') diff --git a/src/liblzma/lzma/lzma_decoder.c b/src/liblzma/lzma/lzma_decoder.c index eedc0733..d0f29b76 100644 --- a/src/liblzma/lzma/lzma_decoder.c +++ b/src/liblzma/lzma/lzma_decoder.c @@ -16,6 +16,12 @@ #include "lzma_decoder.h" #include "range_decoder.h" +// The macros unroll loops with switch statements. +// Silence warnings about missing fall-through comments. +#if TUKLIB_GNUC_REQ(7, 0) +# pragma GCC diagnostic ignored "-Wimplicit-fallthrough" +#endif + #ifdef HAVE_SMALL -- cgit v1.2.3