aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorRuslan Bukin <br@FreeBSD.org>2018-06-04 16:21:18 +0000
committerRuslan Bukin <br@FreeBSD.org>2018-06-04 16:21:18 +0000
commita8db1fa14dc3cefb6777999b5f67f79e1e3f16e6 (patch)
tree3f704c1e6beb513fbe11f49c952fdf95e46cba7b /share
parent8cd6c09e7e96686e4fef07347164f7cd9218b994 (diff)
downloadsrc-a8db1fa14dc3cefb6777999b5f67f79e1e3f16e6.tar.gz
src-a8db1fa14dc3cefb6777999b5f67f79e1e3f16e6.zip
Sort GCC warning flags and remove duplicates.
Sponsored by: DARPA, AFRL
Notes
Notes: svn path=/head/; revision=334620
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.sys.mk16
1 files changed, 7 insertions, 9 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index d6fc30f95d25..6a56a554de0b 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -141,19 +141,17 @@ CWARNFLAGS+= -Wno-error=misleading-indentation \
# GCC 7.1.0
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 70100
-CWARNFLAGS+= -Wno-error=deprecated \
- -Wno-error=pointer-compare \
+CWARNFLAGS+= -Wno-error=bool-operation \
+ -Wno-error=deprecated \
+ -Wno-error=expansion-to-defined \
+ -Wno-error=format-overflow \
-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
+ -Wno-error=nonnull \
+ -Wno-error=pointer-compare \
+ -Wno-error=stringop-overflow
.endif
# How to handle FreeBSD custom printf format specifiers.