Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/fetch/lib Only exclude ggc-8 warnings when the ...



details:   https://anonhg.NetBSD.org/src/rev/8bd662668289
branches:  trunk
changeset: 845648:8bd662668289
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Oct 10 02:30:43 2019 +0000

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

diffstat:

 external/bsd/fetch/lib/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b3210750d72c -r 8bd662668289 external/bsd/fetch/lib/Makefile
--- a/external/bsd/fetch/lib/Makefile   Wed Oct 09 23:39:20 2019 +0000
+++ b/external/bsd/fetch/lib/Makefile   Thu Oct 10 02:30:43 2019 +0000
@@ -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 @@
 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
 



Home | Main Index | Thread Index | Old Index