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. --- hunt/huntd/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'hunt') diff --git a/hunt/huntd/Makefile b/hunt/huntd/Makefile index 0981256f..131b7696 100644 --- a/hunt/huntd/Makefile +++ b/hunt/huntd/Makefile @@ -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 + +# 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 -- cgit v1.2.3-56-ge451