Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Aug 2020 21:57:02 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365013 - head/share/mk
Message-ID:  <202008312157.07VLv239051248@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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		\



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