https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102578
--- Comment #1 from eggert at cs dot ucla.edu --- Created attachment 51538 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51538&action=edit false alarm with 'gcc -O2 -S -Wimplicit-fallthrough=5' I'm adding another example of the problem, taken from a different part of GNU Coreutils. Compile this with 'gcc -O2 -S -Wimplicit-fallthrough=5' to see the following false alarm: noreturn1.c: In function 'check': noreturn1.c:16:7: warning: this statement may fall through [-Wimplicit-fallthrough=] 16 | async_safe_die (); | ^~~~~~~~~~~~~~~~~ noreturn1.c:18:5: note: here 18 | default: | ^~~~~~~