Sort GCC warning flags and remove duplicates.
Sponsored by: DARPA, AFRL
This commit is contained in:
parent
8cd6c09e7e
commit
a8db1fa14d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334620
@ -141,19 +141,17 @@ CWARNFLAGS+= -Wno-error=misleading-indentation \
|
|||||||
|
|
||||||
# GCC 7.1.0
|
# GCC 7.1.0
|
||||||
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 70100
|
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 70100
|
||||||
CWARNFLAGS+= -Wno-error=deprecated \
|
CWARNFLAGS+= -Wno-error=bool-operation \
|
||||||
-Wno-error=pointer-compare \
|
-Wno-error=deprecated \
|
||||||
|
-Wno-error=expansion-to-defined \
|
||||||
|
-Wno-error=format-overflow \
|
||||||
-Wno-error=format-truncation \
|
-Wno-error=format-truncation \
|
||||||
-Wno-error=implicit-fallthrough \
|
-Wno-error=implicit-fallthrough \
|
||||||
-Wno-error=expansion-to-defined \
|
|
||||||
-Wno-error=int-in-bool-context \
|
-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=memset-elt-size \
|
||||||
-Wno-error=int-in-bool-context \
|
-Wno-error=nonnull \
|
||||||
-Wno-error=unused-const-variable \
|
-Wno-error=pointer-compare \
|
||||||
-Wno-error=nonnull
|
-Wno-error=stringop-overflow
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# How to handle FreeBSD custom printf format specifiers.
|
# How to handle FreeBSD custom printf format specifiers.
|
||||||
|
Loading…
Reference in New Issue
Block a user