Module Name:    src
Committed By:   kre
Date:           Thu Oct 10 02:35:45 UTC 2019

Modified Files:
        src/external/cddl/osnet/lib/libdtrace: Makefile

Log Message:
Only exclude gcc-8 warnings when the gcc we're using is gcc>=8


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/external/cddl/osnet/lib/libdtrace/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/lib/libdtrace/Makefile
diff -u src/external/cddl/osnet/lib/libdtrace/Makefile:1.22 src/external/cddl/osnet/lib/libdtrace/Makefile:1.23
--- src/external/cddl/osnet/lib/libdtrace/Makefile:1.22	Wed Oct  9 21:49:50 2019
+++ src/external/cddl/osnet/lib/libdtrace/Makefile	Thu Oct 10 02:35:45 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.22 2019/10/09 21:49:50 christos Exp $
+#	$NetBSD: Makefile,v 1.23 2019/10/10 02:35:45 kre Exp $
 
 # $FreeBSD: head/cddl/lib/libdtrace/Makefile 314654 2017-03-04 11:30:04Z ngie $
 
@@ -85,7 +85,7 @@ COPTS.dt_printf.c	+= -Wno-stack-protecto
 COPTS.dt_program.c	+= -Wno-stack-protector
 COPTS.dt_provider.c	+= -Wno-stack-protector
 COPTS.dt_subr.c		+= -Wno-stack-protector
-.if ${ACTIVE_CC} == "gcc"
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
 COPTS.dt_lex.c		+= -Wno-error=stringop-truncation
 COPTS.dt_pid.c		+= -Wno-error=stringop-truncation
 .endif

Reply via email to