mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add GCC 6.1 warn flags for kernel as well.
Sponsored by: DARPA, AFRL
This commit is contained in:
parent
9ddd36c20a
commit
c4dc5cdb7b
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue