mbox series

[0/4] Turn on -Wimplicit-fallthrough

Message ID cover.1722604821.git.fweimer@redhat.com
Headers show
Series Turn on -Wimplicit-fallthrough | expand

Message

Florian Weimer Aug. 2, 2024, 1:21 p.m. UTC
This causes the build to fail if there is a switch/case fallthrough.

Tested on x8_64-linux-gnu.  Built with build-many-glibcs.py (except for
sparcv8-linux-gnu-leon3 due to its unrelated failure).

Thanks,
Florian

Florian Weimer (4):
  x86: Add missing switch/case fall-through markers to init_cpu_features
  x86: Tunables may incorrectly set Prefer_PMINUB_for_stringop (bug
    32047)
  nss: Fix incorrect switch fall-through in tst-nss-gai-actions
  Turn on -Wimplicit-fallthrough by default if available

 Makeconfig                 |  3 +++
 config.make.in             |  1 +
 configure                  | 12 ++++++++++++
 configure.ac               | 10 ++++++++++
 nss/tst-nss-gai-actions.c  |  1 +
 sysdeps/x86/cpu-features.c |  2 ++
 sysdeps/x86/cpu-tunables.c |  1 +
 7 files changed, 30 insertions(+)


base-commit: fb507de8fcd0124ff8b2eb483701899d78f6cc7e