Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Sep 2021 23:58:55 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: 5fd3c9a1f67a - stable/12 - Suppress -Wempty-body warnings in GCC 6.x and later.
Message-ID:  <202109022358.182NwtVi010934@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=5fd3c9a1f67ad92812775c280d7a2d374706a7c5

commit 5fd3c9a1f67ad92812775c280d7a2d374706a7c5
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2020-08-31 21:57:01 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-09-02 23:30:17 +0000

    Suppress -Wempty-body warnings in GCC 6.x and later.
    
    libc++ in LLVM 11 uses an empty else clause in
    include/c++/v1/__thread_support which triggers this warning.
    
    Reviewed by:    dim, emaste
    Differential Revision:  https://reviews.freebsd.org/D26257
    
    (cherry picked from commit 73fd212c813d74ad593c93904c5d8edf763e6c54)
---
 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 92c4e5b12241..b4221953cc0c 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=maybe-uninitialized		\
+CWARNFLAGS+=	-Wno-error=empty-body			\
+		-Wno-error=maybe-uninitialized		\
 		-Wno-error=nonnull-compare		\
 		-Wno-error=redundant-decls		\
 		-Wno-error=shift-negative-value		\



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