]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
build: add -Wswitch to clang for more consistency with gcc
authorRichard Scheffenegger <rscheff@FreeBSD.org>
Thu, 21 Mar 2024 21:47:39 +0000 (22:47 +0100)
committerRichard Scheffenegger <rscheff@FreeBSD.org>
Fri, 22 Mar 2024 00:39:01 +0000 (01:39 +0100)
commit56b40c285b5994d64e7e8fba821c57f86e91502c
treefa4b6231d1b7438328d3f3747ce59938b98ca8e5
parentaf700f430fd86ba3eae63e587985a12436db8f69
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
sys/conf/kern.mk