mirror of
https://git.tukaani.org/xz.git
synced 2025-03-02 14:40:40 +00:00
liblzma: Silence warnings from "clang -Wimplicit-fallthrough"
(cherry picked from commit 672da29bb3a209a727ae46c0df948d7eea69f2e2)
This commit is contained in:
parent
33899ee86d
commit
1a5b93ed57
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
// The macros unroll loops with switch statements.
|
// The macros unroll loops with switch statements.
|
||||||
// Silence warnings about missing fall-through comments.
|
// 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"
|
# pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user