Add warning flags for GCC 7.1.0 compiler.
Sponsored by: DARPA, AFRL
This commit is contained in:
parent
c2c2be5795
commit
1ec31f2c6f
@ -145,6 +145,23 @@ CWARNFLAGS+= -Wno-error=misleading-indentation \
|
||||
-Wno-error=unused-const-variable
|
||||
.endif
|
||||
|
||||
# GCC 7.1.0
|
||||
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 70100
|
||||
CWARNFLAGS+= -Wno-error=deprecated \
|
||||
-Wno-error=pointer-compare \
|
||||
-Wno-error=format-truncation \
|
||||
-Wno-error=implicit-fallthrough \
|
||||
-Wno-error=expansion-to-defined \
|
||||
-Wno-error=int-in-bool-context \
|
||||
-Wno-error=bool-operation \
|
||||
-Wno-error=format-overflow \
|
||||
-Wno-error=stringop-overflow \
|
||||
-Wno-error=memset-elt-size \
|
||||
-Wno-error=int-in-bool-context \
|
||||
-Wno-error=unused-const-variable \
|
||||
-Wno-error=nonnull
|
||||
.endif
|
||||
|
||||
# How to handle FreeBSD custom printf format specifiers.
|
||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30600
|
||||
FORMAT_EXTENSIONS= -D__printf__=__freebsd_kprintf__
|
||||
|
Loading…
Reference in New Issue
Block a user