Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Oct 2018 16:16:05 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r339064 - head/usr.sbin/pmc
Message-ID:  <201810011616.w91GG5Fa020662@repo.freebsd.org>

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



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