Module Name:    src
Committed By:   kre
Date:           Thu Oct 10 02:30:43 UTC 2019

Modified Files:
        src/external/bsd/fetch/lib: Makefile

Log Message:
Only exclude ggc-8 warnings when the gcc we're using is gcc 8 or more.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/external/bsd/fetch/lib/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/bsd/fetch/lib/Makefile
diff -u src/external/bsd/fetch/lib/Makefile:1.13 src/external/bsd/fetch/lib/Makefile:1.14
--- src/external/bsd/fetch/lib/Makefile:1.13	Wed Oct  9 21:19:28 2019
+++ src/external/bsd/fetch/lib/Makefile	Thu Oct 10 02:30:43 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2019/10/09 21:19:28 christos Exp $
+# $NetBSD: Makefile,v 1.14 2019/10/10 02:30:43 kre Exp $
 
 LIB=		fetch
 SRCS=		fetch.c common.c ftp.c http.c file.c
@@ -36,7 +36,7 @@ httperr.h: ${LIBFETCHDIR}/http.errors ${
 CFLAGS+=	-Wno-macro-redefined # _REENTRANT redefined
 .endif
 
-.if ${ACTIVE_CC} == "gcc"
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
 COPTS.http.c += -Wno-error=stringop-truncation
 .endif
 

Reply via email to