Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kern.mk
Show All 11 Lines | |||||
# | # | ||||
# The following flags are next up for working on: | # The following flags are next up for working on: | ||||
# -Wextra | # -Wextra | ||||
# Disable a few warnings for clang, since there are several places in the | # Disable a few warnings for clang, since there are several places in the | ||||
# kernel where fixing them is more trouble than it is worth, or where there is | # kernel where fixing them is more trouble than it is worth, or where there is | ||||
# a false positive. | # a false positive. | ||||
.if ${COMPILER_TYPE} == "clang" | .if ${COMPILER_TYPE} == "clang" | ||||
NO_WCONSTANT_CONVERSION= -Wno-error-constant-conversion | NO_WCONSTANT_CONVERSION= -Wno-error=constant-conversion | ||||
NO_WSHIFT_COUNT_NEGATIVE= -Wno-shift-count-negative | NO_WSHIFT_COUNT_NEGATIVE= -Wno-shift-count-negative | ||||
NO_WSHIFT_COUNT_OVERFLOW= -Wno-shift-count-overflow | NO_WSHIFT_COUNT_OVERFLOW= -Wno-shift-count-overflow | ||||
NO_WSELF_ASSIGN= -Wno-self-assign | NO_WSELF_ASSIGN= -Wno-self-assign | ||||
NO_WUNNEEDED_INTERNAL_DECL= -Wno-error-unneeded-internal-declaration | NO_WUNNEEDED_INTERNAL_DECL= -Wno-error=unneeded-internal-declaration | ||||
NO_WSOMETIMES_UNINITIALIZED= -Wno-error-sometimes-uninitialized | NO_WSOMETIMES_UNINITIALIZED= -Wno-error=sometimes-uninitialized | ||||
NO_WCAST_QUAL= -Wno-error-cast-qual | NO_WCAST_QUAL= -Wno-error=cast-qual | ||||
NO_WTAUTOLOGICAL_POINTER_COMPARE= -Wno-tautological-pointer-compare | NO_WTAUTOLOGICAL_POINTER_COMPARE= -Wno-tautological-pointer-compare | ||||
# Several other warnings which might be useful in some cases, but not severe | # 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 | # enough to error out the whole kernel build. Display them anyway, so there is | ||||
# some incentive to fix them eventually. | # some incentive to fix them eventually. | ||||
CWARNEXTRA?= -Wno-error-tautological-compare -Wno-error-empty-body \ | CWARNEXTRA?= -Wno-error=tautological-compare -Wno-error=empty-body \ | ||||
-Wno-error-parentheses-equality -Wno-error-unused-function \ | -Wno-error=parentheses-equality -Wno-error=unused-function \ | ||||
-Wno-error-pointer-sign | -Wno-error=pointer-sign | ||||
CWARNEXTRA+= -Wno-error-shift-negative-value | CWARNEXTRA+= -Wno-error=shift-negative-value | ||||
CWARNEXTRA+= -Wno-address-of-packed-member | CWARNEXTRA+= -Wno-address-of-packed-member | ||||
.if ${COMPILER_VERSION} >= 100000 | .if ${COMPILER_VERSION} >= 100000 | ||||
NO_WMISLEADING_INDENTATION= -Wno-misleading-indentation | NO_WMISLEADING_INDENTATION= -Wno-misleading-indentation | ||||
.endif | .endif | ||||
.endif # clang | .endif # clang | ||||
.if ${COMPILER_TYPE} == "gcc" | .if ${COMPILER_TYPE} == "gcc" | ||||
# Catch-all for all the things that are in our tree, but for which we're | # Catch-all for all the things that are in our tree, but for which we're | ||||
▲ Show 20 Lines • Show All 282 Lines • Show Last 20 Lines |