HomeFreeBSD

build: add -Wswitch to clang for more consistency with gcc

Description

build: add -Wswitch to clang for more consistency with gcc

gcc12 and gcc13 appear to include Wswitch with Wall, while
clang doesn't. For switch() statements on enum, this forces
the use of at least a default: clause, in adherance with style(9).

Reviewed By: emaste
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D44092

Details

Provenance
rscheffAuthored on Mar 21 2024, 9:47 PM
Reviewer
emaste
Differential Revision
D44092: build: add Wswitch to clang for more consistency with gcc
Parents
rGaf700f430fd8: tcp: no data on SYN segments unless doing TFO
Branches
Unknown
Tags
Unknown