git: c7bb9802495a - stable/12 - Disable errors for -Wredundant-decls for GCC 6+.
Dimitry Andric
dim at FreeBSD.org
Thu Sep 2 23:58:56 UTC 2021
The branch stable/12 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=c7bb9802495a0c0b4efa2754c3257a783525a03d
commit c7bb9802495a0c0b4efa2754c3257a783525a03d
Author: John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2020-08-04 18:20:39 +0000
Commit: Dimitry Andric <dim at FreeBSD.org>
CommitDate: 2021-09-02 23:30:15 +0000
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
(cherry picked from commit 0ea6e5109d681b55886f61822ec23a4404d3eac5)
---
share/mk/bsd.sys.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 671a180dbfba..92c4e5b12241 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -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
More information about the dev-commits-src-all
mailing list