Disable errors for -Wredundant-decls for GCC 6+.

GCC triggers warnings for this that clang does not for duplicate
declarations of yylex().

Differential Revision:	https://reviews.freebsd.org/D25727
This commit is contained in:
John Baldwin 2020-08-04 18:20:39 +00:00
parent a02fb76280
commit 0ea6e5109d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363847

View File

@ -152,6 +152,7 @@ CWARNFLAGS+= -Wno-error=address \
.if ${COMPILER_VERSION} >= 60100
CWARNFLAGS+= -Wno-error=maybe-uninitialized \
-Wno-error=nonnull-compare \
-Wno-error=redundant-decls \
-Wno-error=shift-negative-value \
-Wno-error=tautological-compare \
-Wno-error=unused-const-variable