Disable an init-list-lifetime warning from gcc-9.

This commit is contained in:
christos 2020-09-07 19:05:41 +00:00
parent 09db05edfe
commit 625508a57b
1 changed files with 3 additions and 1 deletions

View File

@ -1,8 +1,10 @@
# $NetBSD: Makefile.inc,v 1.2 2020/09/07 00:18:26 mrg Exp $
# $NetBSD: Makefile.inc,v 1.3 2020/09/07 19:05:41 christos Exp $
LLVM_TOPLEVEL:= ${.PARSEDIR}/..
NOSTATICLIB= yes
COPTS+=${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} > 8:? -Wno-error=init-list-lifetime :}
.include "${LLVM_TOPLEVEL}/lib/Makefile.inc"
.include "${LLVM_TOPLEVEL}/lib/${.CURDIR:T}/Makefile"