summaryrefslogtreecommitdiff
path: root/lib/tiny-printf.c
diff options
context:
space:
mode:
authorAndre Przywara <[email protected]>2025-03-27 15:32:57 +0000
committerTom Rini <[email protected]>2025-04-08 16:23:51 -0600
commit3d907a5a490b79b876a3f9c325b483a116f29b7e (patch)
tree64860e426dd27b1ff1bf11f43e6e339945330edb /lib/tiny-printf.c
parenta6a9d3273346138fadb1a173fc2f5e9d0e61215a (diff)
zlib: annotate switch/case fallthrough cases
The inflate state machine in zlib uses switch/case fall-through's extensively, as it sometimes advances the state, and lets the conveniently placed next case statement handle the new state already. The pattern here is: state->mode = LEN; case LEN: Annotate those occasions with the "fallthrough;" macro, to let compilers know this is fine when using -Wimplicit-fallthrough. This mimics the upstream commit 76f70abbc73f: Author: Mark Adler <[email protected]> Date: Sun Mar 27 00:12:38 2022 -0700 Subject: Add fallthrough comments for gcc. Signed-off-by: Andre Przywara <[email protected]> Link: https://github.com/madler/zlib/commit/76f70abbc73f Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'lib/tiny-printf.c')
0 files changed, 0 insertions, 0 deletions