Author: jhb
Date: Fri Sep 25 21:18:43 2020
New Revision: 366174
URL: https://svnweb.freebsd.org/changeset/base/366174

Log:
  MFC 365013: 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.

Modified:
  stable/12/share/mk/bsd.sys.mk
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/share/mk/bsd.sys.mk
==============================================================================
--- stable/12/share/mk/bsd.sys.mk       Fri Sep 25 20:51:07 2020        
(r366173)
+++ stable/12/share/mk/bsd.sys.mk       Fri Sep 25 21:18:43 2020        
(r366174)
@@ -156,7 +156,8 @@ CWARNFLAGS+=        -Wno-error=address                      
\
 
 # GCC 6.1.0
 .if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 60100
-CWARNFLAGS+=   -Wno-error=nonnull-compare              \
+CWARNFLAGS+=   -Wno-error=empty-body                   \
+               -Wno-error=nonnull-compare              \
                -Wno-error=shift-negative-value         \
                -Wno-error=tautological-compare         \
                -Wno-error=unused-const-variable
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to