svn commit: r339064 - head/usr.sbin/pmc

Ruslan Bukin br at FreeBSD.org
Mon Oct 1 16:16:06 UTC 2018


Author: br
Date: Mon Oct  1 16:16:05 2018
New Revision: 339064
URL: https://svnweb.freebsd.org/changeset/base/339064

Log:
  Fix build with GCC 8.1.
  
  GCC 8.1 failed to build LLVM's libc++ when -Wshadow is set,
  so lower down WARNS flag to 3.
  
  This is similar to dtc(1) which uses libc++ and sets WARNS to 3.
  
  Approved by:	re (gjb)
  Sponsored by:	DARPA, AFRL

Modified:
  head/usr.sbin/pmc/Makefile

Modified: head/usr.sbin/pmc/Makefile
==============================================================================
--- head/usr.sbin/pmc/Makefile	Mon Oct  1 16:14:38 2018	(r339063)
+++ head/usr.sbin/pmc/Makefile	Mon Oct  1 16:16:05 2018	(r339064)
@@ -5,6 +5,7 @@
 .include <src.opts.mk>
 PROG_CXX=	pmc
 MAN=	
+WARNS?=	3
 CXXFLAGS+= -O0 -std=c++14
 CWARNFLAGS.gcc+= -Wno-redundant-decls
 


More information about the svn-src-all mailing list