From 7d510aa1191273df4f27b92b41d3f45449b05cea Mon Sep 17 00:00:00 2001 From: mrg Date: Mon, 4 Feb 2019 09:51:47 +0000 Subject: apply -Wno-error=implicit-fallthrough on files that have fallthru comments but are missed by the current checker. --- backgammon/common_source/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'backgammon') diff --git a/backgammon/common_source/Makefile b/backgammon/common_source/Makefile index ea9f7b03..f77b337e 100644 --- a/backgammon/common_source/Makefile +++ b/backgammon/common_source/Makefile @@ -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 + +# 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 -- cgit v1.2.3-56-ge451