Disable the new -Waddress-of-packed-member warning for WARNS <= 1.

This commit is contained in:
Dimitry Andric 2017-01-05 18:32:53 +00:00
parent 53fe1d28fa
commit a45fc83cc5

View File

@ -84,6 +84,9 @@ CWARNFLAGS.clang+= -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter
.endif # WARNS <= 2
.if ${WARNS} <= 1
CWARNFLAGS.clang+= -Wno-parentheses
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 40000
CWARNFLAGS.clang+= -Wno-address-of-packed-member
.endif
.endif # WARNS <= 1
.if defined(NO_WARRAY_BOUNDS)
CWARNFLAGS.clang+= -Wno-array-bounds