diff options
author | dim <dim@FreeBSD.org> | 2011-12-23 13:50:33 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-23 13:50:33 +0000 |
commit | d5cd91d7ec78cfb129089f34ccefa523b77425ce (patch) | |
tree | d82b716d468b65533edc58351a5738c6352824b1 | |
parent | c2a7f1025365e002b4b0640500da172643227fb5 (diff) | |
download | FreeBSD-src-d5cd91d7ec78cfb129089f34ccefa523b77425ce.zip FreeBSD-src-d5cd91d7ec78cfb129089f34ccefa523b77425ce.tar.gz |
Amend r228822 by not directly adding to CWARNFLAGS, but to an optional
CWARNEXTRA variable, which gets included into the initial CWARNFLAGS
setting. This makes it easier to override CWARNFLAGS with completely
custom settings (including enabling any disabled warnings).
Reminded by: arundel
MFC after: 1 week
-rw-r--r-- | sys/conf/kern.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 91f089e..78f263e 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -6,7 +6,8 @@ CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \ -Wundef -Wno-pointer-sign -fformat-extensions \ - -Wmissing-include-dirs -fdiagnostics-show-option + -Wmissing-include-dirs -fdiagnostics-show-option \ + ${CWARNEXTRA} # # The following flags are next up for working on: # -Wextra @@ -22,7 +23,7 @@ NO_WSHIFT_COUNT_OVERFLOW= -Wno-shift-count-overflow # Several other warnings which might be useful in some cases, but not severe # enough to error out the whole kernel build. Display them anyway, so there is # some incentive to fix them eventually. -CWARNFLAGS+= -Wno-error-tautological-compare +CWARNEXTRA+= -Wno-error-tautological-compare .endif # |