]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
convert HAVE_GCC == 7 to HAVE_GCC >= 7.
authormrg <mrg@NetBSD.org>
Sun, 29 Sep 2019 23:44:58 +0000 (23:44 +0000)
committermrg <mrg@NetBSD.org>
Sun, 29 Sep 2019 23:44:58 +0000 (23:44 +0000)
backgammon/common_source/Makefile
hunt/huntd/Makefile

index f77b337e262874ea221c33dcc9a61eb69c6d4326..5daf9579e0ced60c641a50b77f4221521e7efecd 100644 (file)
@@ -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 <bsd.own.mk>
 
 # 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
 
index 131b7696468d942770ce0e4c32c422333db004c1..9bce5e39bb023d9235045f07f34095eb6ba78cdf 100644 (file)
@@ -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 <bsd.own.mk>
 
 # 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