Add GCC 8.1.0 compiler warning flags.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Ruslan Bukin 2018-07-03 10:51:59 +00:00
parent 7a2bf4c52e
commit f41c578fed
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335887

View File

@ -154,6 +154,16 @@ CWARNFLAGS+= -Wno-error=bool-operation \
-Wno-error=stringop-overflow
.endif
# GCC 8.1.0
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 80100
CWARNFLAGS+= -Wno-error=aggressive-loop-optimizations \
-Wno-error=cast-function-type \
-Wno-error=multistatement-macros \
-Wno-error=restrict \
-Wno-error=sizeof-pointer-memaccess \
-Wno-error=stringop-truncation
.endif
# How to handle FreeBSD custom printf format specifiers.
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30600
FORMAT_EXTENSIONS= -D__printf__=__freebsd_kprintf__