Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.sys.mk
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | |||||
.if ${WARNS} >= 4 | .if ${WARNS} >= 4 | ||||
CWARNFLAGS+= -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow\ | CWARNFLAGS+= -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow\ | ||||
-Wunused-parameter | -Wunused-parameter | ||||
.if !defined(NO_WCAST_ALIGN) && !defined(NO_WCAST_ALIGN.${COMPILER_TYPE}) | .if !defined(NO_WCAST_ALIGN) && !defined(NO_WCAST_ALIGN.${COMPILER_TYPE}) | ||||
CWARNFLAGS+= -Wcast-align | CWARNFLAGS+= -Wcast-align | ||||
.endif # !NO_WCAST_ALIGN !NO_WCAST_ALIGN.${COMPILER_TYPE} | .endif # !NO_WCAST_ALIGN !NO_WCAST_ALIGN.${COMPILER_TYPE} | ||||
.endif # WARNS >= 4 | .endif # WARNS >= 4 | ||||
.if ${WARNS} >= 6 | .if ${WARNS} >= 6 | ||||
CWARNFLAGS+= -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls\ | CWARNFLAGS+= -Wchar-subscripts -Wnested-externs -Wredundant-decls\ | ||||
-Wold-style-definition | -Wold-style-definition | ||||
.if !defined(NO_WMISSING_VARIABLE_DECLARATIONS) | .if !defined(NO_WMISSING_VARIABLE_DECLARATIONS) | ||||
CWARNFLAGS.clang+= -Wmissing-variable-declarations | CWARNFLAGS.clang+= -Wmissing-variable-declarations | ||||
.endif | .endif | ||||
.if !defined(NO_WTHREAD_SAFETY) | .if !defined(NO_WTHREAD_SAFETY) | ||||
CWARNFLAGS.clang+= -Wthread-safety | CWARNFLAGS.clang+= -Wthread-safety | ||||
.endif | .endif | ||||
.endif # WARNS >= 6 | .endif # WARNS >= 6 | ||||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | CWARNFLAGS+= -Wno-error=address \ | ||||
-Wno-error=array-bounds \ | -Wno-error=array-bounds \ | ||||
-Wno-error=attributes \ | -Wno-error=attributes \ | ||||
-Wno-error=bool-compare \ | -Wno-error=bool-compare \ | ||||
-Wno-error=cast-align \ | -Wno-error=cast-align \ | ||||
-Wno-error=clobbered \ | -Wno-error=clobbered \ | ||||
-Wno-error=deprecated-declarations \ | -Wno-error=deprecated-declarations \ | ||||
-Wno-error=enum-compare \ | -Wno-error=enum-compare \ | ||||
-Wno-error=extra \ | -Wno-error=extra \ | ||||
-Wno-error=inline \ | |||||
-Wno-error=logical-not-parentheses \ | -Wno-error=logical-not-parentheses \ | ||||
-Wno-error=strict-aliasing \ | -Wno-error=strict-aliasing \ | ||||
-Wno-error=uninitialized \ | -Wno-error=uninitialized \ | ||||
-Wno-error=unused-but-set-variable \ | -Wno-error=unused-but-set-variable \ | ||||
-Wno-error=unused-function \ | -Wno-error=unused-function \ | ||||
-Wno-error=unused-value | -Wno-error=unused-value | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 284 Lines • Show Last 20 Lines |