git: d86f0502b1ec - stable/12 - Turn off errors for -Wmaybe-uninitialized in GCC 6+.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Mar 2023 22:28:40 UTC
The branch stable/12 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=d86f0502b1ecba11a2cc6d86c7167d872fb471fd
commit d86f0502b1ecba11a2cc6d86c7167d872fb471fd
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2020-08-04 18:19:29 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-03-22 19:23:37 +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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 7211b54c1804..45f0dcc2c6cf 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -163,6 +163,7 @@ CWARNFLAGS+= -Wno-error=address \
# GCC 6.1.0
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 60100
CWARNFLAGS+= -Wno-error=empty-body \
+ -Wno-error=maybe-uninitialized \
-Wno-error=nonnull-compare \
-Wno-error=shift-negative-value \
-Wno-error=tautological-compare \