git: 5fd3c9a1f67a - stable/12 - Suppress -Wempty-body warnings in GCC 6.x and later.
Dimitry Andric
dim at FreeBSD.org
Thu Sep 2 23:58:57 UTC 2021
The branch stable/12 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=5fd3c9a1f67ad92812775c280d7a2d374706a7c5
commit 5fd3c9a1f67ad92812775c280d7a2d374706a7c5
Author: John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2020-08-31 21:57:01 +0000
Commit: Dimitry Andric <dim at 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 \
More information about the dev-commits-src-all
mailing list