]> git.ipfire.org Git - thirdparty/haproxy.git/commit
IMPORT: slz: define and use a __fallthrough statement for switch/case
authorWilly Tarreau <w@1wt.eu>
Sun, 13 Nov 2022 12:06:02 +0000 (13:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Nov 2022 10:14:02 +0000 (11:14 +0100)
commit71de04134e3f614f4603d1731790314aa7716dc9
treec72a385017721cfc1b8c5f76bd3686ff52e7da32
parent4bd53c397c67535bbf1bc67dcc60b49a1c5c3912
IMPORT: slz: define and use a __fallthrough statement for switch/case

When the code is preprocessed first and compiled later, such as when
built under distcc, the "fall through" comments are dropped and warnings
are emitted. Let's use the alternative "fallthrough" attribute instead,
that is supported by versions of gcc and clang that also produce this
warning.

This is libslz upstream commit 0fdf8ae218f3ecb0b7f22afd1a6b35a4f94053e2
include/import/slz-tables.h