git: 8fce2bfdfc6f - stable/12 - Turn off errors for -Wmaybe-uninitialized in GCC 6+.
Dimitry Andric
dim at FreeBSD.org
Thu Sep 2 23:58:55 UTC 2021
The branch stable/12 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=8fce2bfdfc6f2d4f105e5e603369bf03b49670e7
commit 8fce2bfdfc6f2d4f105e5e603369bf03b49670e7
Author: John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2020-08-04 18:19:29 +0000
Commit: Dimitry Andric <dim at FreeBSD.org>
CommitDate: 2021-09-02 23:30:14 +0000
Turn off errors for -Wmaybe-uninitialized in GCC 6+.
Recent changes to <sys/tree.h> trigger this warning and seem like a
false positive.
Differential Revision: https://reviews.freebsd.org/D25726
(cherry picked from commit a02fb76280fd663aa46843423002d605a7bd0796)
---
share/mk/bsd.sys.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index d884fbea1739..671a180dbfba 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -150,7 +150,8 @@ CWARNFLAGS+= -Wno-error=address \
# GCC 6.1.0
.if ${COMPILER_VERSION} >= 60100
-CWARNFLAGS+= -Wno-error=nonnull-compare \
+CWARNFLAGS+= -Wno-error=maybe-uninitialized \
+ -Wno-error=nonnull-compare \
-Wno-error=shift-negative-value \
-Wno-error=tautological-compare \
-Wno-error=unused-const-variable
More information about the dev-commits-src-all
mailing list