From 7175df1928b975fdbf6d5177ee2708542d4c3a27 Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 29 Sep 2019 23:44:58 +0000 Subject: convert HAVE_GCC == 7 to HAVE_GCC >= 7. --- backgammon/common_source/Makefile | 4 ++-- hunt/huntd/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backgammon/common_source/Makefile b/backgammon/common_source/Makefile index f77b337e..5daf9579 100644 --- a/backgammon/common_source/Makefile +++ b/backgammon/common_source/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2019/02/04 09:51:48 mrg Exp $ +# $NetBSD: Makefile,v 1.11 2019/09/29 23:44:59 mrg Exp $ LIBISPRIVATE= yes @@ -9,7 +9,7 @@ SRCS= allow.c board.c check.c fancy.c init.c odds.c \ .include # Has fallthru comment that is missed -.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" +.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc" COPTS.check.c+= -Wno-error=implicit-fallthrough .endif diff --git a/hunt/huntd/Makefile b/hunt/huntd/Makefile index 131b7696..9bce5e39 100644 --- a/hunt/huntd/Makefile +++ b/hunt/huntd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2019/02/04 09:51:48 mrg Exp $ +# $NetBSD: Makefile,v 1.8 2019/09/29 23:44:59 mrg Exp $ PROG= huntd SRCS= answer.c draw.c driver.c execute.c expl.c \ @@ -10,7 +10,7 @@ CPPFLAGS+=-I${.CURDIR}/../include .include # Has fallthru comment that is missed -.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" +.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc" COPTS.shots.c+= -Wno-error=implicit-fallthrough .endif -- cgit v1.2.3-56-ge451