svn commit: r365583 - head/tools/build/mk

Alex Richardson arichardson at FreeBSD.org
Thu Sep 10 15:37:27 UTC 2020


Author: arichardson
Date: Thu Sep 10 15:37:24 2020
New Revision: 365583
URL: https://svnweb.freebsd.org/changeset/base/365583

Log:
  Silence GCC's -Wno-unused-result during bootstrap
  
  Unlike clang, GCC still warns even with (void) casts (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425)

Modified:
  head/tools/build/mk/Makefile.boot

Modified: head/tools/build/mk/Makefile.boot
==============================================================================
--- head/tools/build/mk/Makefile.boot	Thu Sep 10 15:37:19 2020	(r365582)
+++ head/tools/build/mk/Makefile.boot	Thu Sep 10 15:37:24 2020	(r365583)
@@ -96,3 +96,6 @@ UPDATE_DEPENDFILE= no
     Error was caused by Makefile in ${.CURDIR}
 .endif
 .endif
+
+# GCC doesn't allow silencing warn_unused_result calls with (void) casts.
+CFLAGS.gcc+=-Wno-unused-result


More information about the svn-src-head mailing list