Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/apache2/llvm/librt Disable an init-list-lifetime wa...



details:   https://anonhg.NetBSD.org/src/rev/9d7df292f1c2
branches:  trunk
changeset: 938420:9d7df292f1c2
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Sep 07 19:05:41 2020 +0000

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

diffstat:

 external/apache2/llvm/librt/Makefile.inc |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r d6b1a26a54b1 -r 9d7df292f1c2 external/apache2/llvm/librt/Makefile.inc
--- a/external/apache2/llvm/librt/Makefile.inc  Mon Sep 07 19:04:27 2020 +0000
+++ b/external/apache2/llvm/librt/Makefile.inc  Mon Sep 07 19:05:41 2020 +0000
@@ -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"
 



Home | Main Index | Thread Index | Old Index