]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
apply -Wno-error=implicit-fallthrough on files that have fallthru
authormrg <mrg@NetBSD.org>
Mon, 4 Feb 2019 09:51:47 +0000 (09:51 +0000)
committermrg <mrg@NetBSD.org>
Mon, 4 Feb 2019 09:51:47 +0000 (09:51 +0000)
comments but are missed by the current checker.

backgammon/common_source/Makefile
hunt/huntd/Makefile

index ea9f7b0306c5365d65c9a66d8475ce6fd6311431..f77b337e262874ea221c33dcc9a61eb69c6d4326 100644 (file)
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.9 2008/05/03 14:48:30 lukem Exp $
+#      $NetBSD: Makefile,v 1.10 2019/02/04 09:51:48 mrg Exp $
 
 LIBISPRIVATE=  yes
 
@@ -6,4 +6,11 @@ LIB=           common
 SRCS=          allow.c board.c check.c fancy.c init.c odds.c \
                one.c save.c subs.c table.c
 
+.include <bsd.own.mk>
+
+# Has fallthru comment that is missed
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+COPTS.check.c+=        -Wno-error=implicit-fallthrough
+.endif
+
 .include <bsd.lib.mk>
index 0981256f739de759391f9cd73fa98a364b81cc55..131b7696468d942770ce0e4c32c422333db004c1 100644 (file)
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.6 2014/03/29 22:29:55 dholland Exp $
+#      $NetBSD: Makefile,v 1.7 2019/02/04 09:51:48 mrg Exp $
 
 PROG=  huntd
 SRCS=  answer.c draw.c driver.c execute.c expl.c \
@@ -7,4 +7,11 @@ MAN=   huntd.6
 
 CPPFLAGS+=-I${.CURDIR}/../include
 
+.include <bsd.own.mk>
+
+# Has fallthru comment that is missed
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+COPTS.shots.c+=        -Wno-error=implicit-fallthrough
+.endif
+
 .include <bsd.prog.mk>