1
0
mirror of https://git.tukaani.org/xz.git synced 2025-03-01 14:10:47 +00:00

liblzma: Silence warnings from "clang -Wimplicit-fallthrough"

(cherry picked from commit 672da29bb3a209a727ae46c0df948d7eea69f2e2)
This commit is contained in:
Lasse Collin 2025-01-01 18:46:50 +02:00
parent 33899ee86d
commit 1a5b93ed57
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View 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