svn commit: r365013 - head/share/mk
John Baldwin
jhb at FreeBSD.org
Mon Aug 31 21:57:02 UTC 2020
Author: jhb
Date: Mon Aug 31 21:57:01 2020
New Revision: 365013
URL: https://svnweb.freebsd.org/changeset/base/365013
Log:
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
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D26257
Modified:
head/share/mk/bsd.sys.mk
Modified: head/share/mk/bsd.sys.mk
==============================================================================
--- head/share/mk/bsd.sys.mk Mon Aug 31 21:55:25 2020 (r365012)
+++ head/share/mk/bsd.sys.mk Mon Aug 31 21:57:01 2020 (r365013)
@@ -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 svn-src-all
mailing list