Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Sep 2021 23:58:53 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 8fce2bfdfc6f - stable/12 - Turn off errors for -Wmaybe-uninitialized in GCC 6+.
Message-ID:  <202109022358.182NwrBH010886@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=8fce2bfdfc6f2d4f105e5e603369bf03b49670e7

commit 8fce2bfdfc6f2d4f105e5e603369bf03b49670e7
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2020-08-04 18:19:29 +0000
Commit:     Dimitry Andric <dim@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202109022358.182NwrBH010886>