Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kern.mk
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
CWARNEXTRA+= -Wno-error=packed-not-aligned | CWARNEXTRA+= -Wno-error=packed-not-aligned | ||||
.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 | ||||
NO_WNONNULL= -Wno-nonnull | |||||
.endif | .endif | ||||
.endif | .endif | ||||
# External compilers may not support our format extensions. Allow them | # External compilers may not support our format extensions. Allow them | ||||
# to be disabled. WARNING: format checking is disabled in this case. | # to be disabled. WARNING: format checking is disabled in this case. | ||||
.if ${MK_FORMAT_EXTENSIONS} == "no" | .if ${MK_FORMAT_EXTENSIONS} == "no" | ||||
FORMAT_EXTENSIONS= -Wno-format | FORMAT_EXTENSIONS= -Wno-format | ||||
.elif ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30600 | .elif ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30600 | ||||
▲ Show 20 Lines • Show All 211 Lines • Show Last 20 Lines |