]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Silence warnings from "clang -Wimplicit-fallthrough"
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 1 Jan 2025 16:46:50 +0000 (18:46 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 2 Jan 2025 13:48:57 +0000 (15:48 +0200)
(cherry picked from commit 672da29bb3a209a727ae46c0df948d7eea69f2e2)

src/liblzma/lzma/lzma_decoder.c

index 0abed02b81546ba434c433f742540d315140a27c..2088a2faa54eaebdd750d9e6293dee35b69194e1 100644 (file)
@@ -18,7 +18,7 @@
 
 // The macros unroll loops with switch statements.
 // Silence warnings about missing fall-through comments.
-#if TUKLIB_GNUC_REQ(7, 0)
+#if TUKLIB_GNUC_REQ(7, 0) || defined(__clang__)
 #      pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #endif