Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kern.mk
Show All 19 Lines | |||||
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 | ||||
NO-SANITIZE-COVERAGE= -fno-sanitize-coverage=trace-pc,trace-cmp | |||||
emaste: hyphens in the variable name is unusual | |||||
tuexenAuthorUnsubmitted Done Inline ActionsFixed. I should have figured out that by myself... Thanks for the comment! tuexen: Fixed. I should have figured out that by myself... Thanks for the comment! | |||||
andrewUnsubmitted Not Done Inline ActionsI'm a bit concerned we need to keep these flags in sync in multiple places. I think it would be safer to just filter out the flags we don't want. andrew: I'm a bit concerned we need to keep these flags in sync in multiple places. I think it would be… | |||||
# 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 | ||||
.if ${COMPILER_VERSION} >= 30700 | .if ${COMPILER_VERSION} >= 30700 | ||||
CWARNEXTRA+= -Wno-error-shift-negative-value | CWARNEXTRA+= -Wno-error-shift-negative-value | ||||
Show All 27 Lines | CWARNEXTRA+= -Wno-error=misleading-indentation \ | ||||
-Wno-error=shift-overflow \ | -Wno-error=shift-overflow \ | ||||
-Wno-error=tautological-compare | -Wno-error=tautological-compare | ||||
.endif | .endif | ||||
.if ${COMPILER_VERSION} >= 70200 | .if ${COMPILER_VERSION} >= 70200 | ||||
CWARNEXTRA+= -Wno-error=memset-elt-size | CWARNEXTRA+= -Wno-error=memset-elt-size | ||||
.endif | .endif | ||||
.if ${COMPILER_VERSION} >= 80000 | .if ${COMPILER_VERSION} >= 80000 | ||||
CWARNEXTRA+= -Wno-error=packed-not-aligned | CWARNEXTRA+= -Wno-error=packed-not-aligned | ||||
.endif | |||||
.if ${COMPILER_VERSION} >= 80100 | |||||
NO-SANITIZE-COVERAGE= -fno-sanitize-coverage=trace-pc,trace-cmp | |||||
.else | |||||
NO-SANITIZE-COVERAGE= -fno-sanitize-coverage=trace-pc | |||||
.endif | .endif | ||||
.else | .else | ||||
# For gcc 4.2, eliminate the too-often-wrong warnings about uninitialized vars. | # For gcc 4.2, eliminate the too-often-wrong warnings about uninitialized vars. | ||||
CWARNEXTRA?= -Wno-uninitialized | CWARNEXTRA?= -Wno-uninitialized | ||||
# GCC 4.2 doesn't have -Wno-error=cast-qual, so just disable the warning for | # GCC 4.2 doesn't have -Wno-error=cast-qual, so just disable the warning for | ||||
# the few files that are already known to generate cast-qual warnings. | # the few files that are already known to generate cast-qual warnings. | ||||
NO_WCAST_QUAL= -Wno-cast-qual | NO_WCAST_QUAL= -Wno-cast-qual | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |
hyphens in the variable name is unusual