diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-09-04 17:55:22 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-09-04 17:55:22 +0000 |
commit | 1c7c2b26e8aa11bf3dffe512af3970fa8bf07047 (patch) | |
tree | 974fb6aa339921b50da0abb0cf0795b319ce3ba1 /sys/conf | |
parent | 705cb30caedd5c1e9e4691834bd9ec0fe006d6fc (diff) | |
download | src-1c7c2b26e8aa11bf3dffe512af3970fa8bf07047.tar.gz src-1c7c2b26e8aa11bf3dffe512af3970fa8bf07047.zip |
For kernel builds, instead of suppressing certain clang warnings, make
them non-fatal, so there is some incentive to fix them eventually.
Notes
Notes:
svn path=/head/; revision=305392
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/kern.mk | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 05e62481952d..31dae462c012 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -17,13 +17,13 @@ CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ # kernel where fixing them is more trouble than it is worth, or where there is # a false positive. .if ${COMPILER_TYPE} == "clang" -NO_WCONSTANT_CONVERSION= -Wno-constant-conversion -NO_WSHIFT_COUNT_NEGATIVE= -Wno-shift-count-negative -NO_WSHIFT_COUNT_OVERFLOW= -Wno-shift-count-overflow -NO_WSELF_ASSIGN= -Wno-self-assign -NO_WUNNEEDED_INTERNAL_DECL= -Wno-unneeded-internal-declaration +NO_WCONSTANT_CONVERSION= -Wno-error-constant-conversion +NO_WSHIFT_COUNT_NEGATIVE= -Wno-error-shift-count-negative +NO_WSHIFT_COUNT_OVERFLOW= -Wno-error-shift-count-overflow +NO_WSELF_ASSIGN= -Wno-error-self-assign +NO_WUNNEEDED_INTERNAL_DECL= -Wno-error-unneeded-internal-declaration NO_WSOMETIMES_UNINITIALIZED= -Wno-error-sometimes-uninitialized -NO_WCAST_QUAL= -Wno-cast-qual +NO_WCAST_QUAL= -Wno-error-cast-qual # 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. |