git: bsd.sys.mk: Adjust _cnowarnflags for WARNS=3
Aaron LI
aly at crater.dragonflybsd.org
Mon Nov 2 07:58:36 PST 2026
commit 0c3cf5f0f40c63248db21375a1dc54f6127f00bf
Author: Aaron LI <aly at aaronly.me>
Date: Mon Nov 2 19:54:44 2026 +0800
bsd.sys.mk: Adjust _cnowarnflags for WARNS=3
* -Wunused-but-set-parameter is included in -Wextra, which is enabled at
WARNS=3, so move the -Wno-unused-but-set-parameter flag to WARNS=3.
* Merge -Wno-unused-but-set-parameter and -Wno-unused-parameter, and
remove the GCC check because it also applies to Clang (its -Wextra
also enables the two warnings).
* Adjust the -Wno-implicit-fallthrough case to clean up the condition a
bit.
Reviewed-by: swildner
Summary of changes:
share/mk/bsd.sys.mk | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0c3cf5f0f40c63248db21375a1dc54f6127f00bf
--
DragonFly BSD source repository
More information about the Commits
mailing list