From e8e87febec288793037447eb2a668f892a85ae69 Mon Sep 17 00:00:00 2001 From: Ruslan Bukin Date: Mon, 1 Oct 2018 16:16:05 +0000 Subject: [PATCH] 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 --- usr.sbin/pmc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/pmc/Makefile b/usr.sbin/pmc/Makefile index 2f94d3e274ef..090134711b92 100644 --- a/usr.sbin/pmc/Makefile +++ b/usr.sbin/pmc/Makefile @@ -5,6 +5,7 @@ .include PROG_CXX= pmc MAN= +WARNS?= 3 CXXFLAGS+= -O0 -std=c++14 CWARNFLAGS.gcc+= -Wno-redundant-decls