Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.sys.mk
| Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
| .endif | .endif | ||||
| .endif # WARNS >= 6 | .endif # WARNS >= 6 | ||||
| .if ${WARNS} >= 2 && ${WARNS} <= 4 | .if ${WARNS} >= 2 && ${WARNS} <= 4 | ||||
| # XXX Delete -Wuninitialized by default for now -- the compiler doesn't | # XXX Delete -Wuninitialized by default for now -- the compiler doesn't | ||||
| # XXX always get it right. | # XXX always get it right. | ||||
| CWARNFLAGS+= -Wno-uninitialized | CWARNFLAGS+= -Wno-uninitialized | ||||
| .endif # WARNS >=2 && WARNS <= 4 | .endif # WARNS >=2 && WARNS <= 4 | ||||
| CWARNFLAGS+= -Wno-pointer-sign | CWARNFLAGS+= -Wno-pointer-sign | ||||
| .if !defined(NO_WDATE_TIME) | |||||
| CWARNFLAGS+= -Wdate-time | |||||
| .endif # NO_WDATE_TIME | |||||
| # Clang has more warnings enabled by default, and when using -Wall, so if WARNS | # Clang has more warnings enabled by default, and when using -Wall, so if WARNS | ||||
| # is set to low values, these have to be disabled explicitly. | # is set to low values, these have to be disabled explicitly. | ||||
| .if ${WARNS} <= 6 | .if ${WARNS} <= 6 | ||||
| CWARNFLAGS.clang+= -Wno-empty-body -Wno-string-plus-int | CWARNFLAGS.clang+= -Wno-empty-body -Wno-string-plus-int | ||||
| CWARNFLAGS.clang+= -Wno-unused-const-variable | CWARNFLAGS.clang+= -Wno-unused-const-variable | ||||
| .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000 | .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000 | ||||
| CWARNFLAGS.clang+= -Wno-error=unused-but-set-variable | CWARNFLAGS.clang+= -Wno-error=unused-but-set-variable | ||||
| .endif | .endif | ||||
| ▲ Show 20 Lines • Show All 390 Lines • Show Last 20 Lines | |||||