[klibc] [klibc:master] zlib: Suppress implicit-fallthrough warning
klibc-bot for Ben Hutchings
ben at decadent.org.uk
Tue Apr 27 18:12:13 PDT 2021
Commit-ID: 1a6b40cdb9b3a9671c5e56dee864e94cc19df7dd
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=1a6b40cdb9b3a9671c5e56dee864e94cc19df7dd
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Wed, 28 Apr 2021 01:30:28 +0200
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Wed, 28 Apr 2021 01:44:30 +0200
[klibc] zlib: Suppress implicit-fallthrough warning
zlib implements state machines with for and switch, but some state
transitions are "optimised" as a fall-through between switch cases.
Rather than deviating from upstream zlib, suppress the warnings for
these.
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/klibc/zlib/Kbuild | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/usr/klibc/zlib/Kbuild b/usr/klibc/zlib/Kbuild
index f2e1bf2a..8bff3d5a 100644
--- a/usr/klibc/zlib/Kbuild
+++ b/usr/klibc/zlib/Kbuild
@@ -6,3 +6,7 @@ klib-y += inflate.o infback.o inftrees.o inffast.o
# zlib specific flag
EXTRA_KLIBCCFLAGS := -DDYNAMIC_CRC_TABLE
+
+# Suppress implicit-fallthrough warning for state machine cases
+# where this is intentional
+EXTRA_KLIBCCFLAGS += $(call cc-disable-warning,implicit-fallthrough)
More information about the klibc
mailing list