Add GCC 6.1 warn flags for kernel as well.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Ruslan Bukin 2016-07-22 16:15:35 +00:00
parent 9ddd36c20a
commit c4dc5cdb7b

View file

@ -50,6 +50,9 @@ CWARNEXTRA?= -Wno-error=inline -Wno-error=enum-compare -Wno-error=unused-but-set
-Wno-error=array-bounds -Wno-error=address \
-Wno-error=cast-qual -Wno-error=sequence-point -Wno-error=attributes \
-Wno-error=strict-overflow -Wno-error=overflow
.if ${COMPILER_VERSION} >= 60100
CWARNEXTRA+= -Wno-error=nonnull-compare -Wno-error=shift-overflow=
.endif
.else
# For gcc 4.2, eliminate the too-often-wrong warnings about uninitialized vars.
CWARNEXTRA?= -Wno-uninitialized