mirror of https://git.tukaani.org/xz.git
liblzma: Silence warnings from "clang -Wimplicit-fallthrough"
This commit is contained in:
parent
1a8a1ad9a1
commit
672da29bb3
|
@ -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…
Reference in New Issue