Module Name: src Committed By: mrg Date: Mon Feb 4 09:51:48 UTC 2019
Modified Files: src/games/backgammon/common_source: Makefile src/games/hunt/huntd: Makefile src/usr.bin/stat: Makefile src/usr.bin/telnet: Makefile src/usr.sbin/quotacheck: Makefile Log Message: apply -Wno-error=implicit-fallthrough on files that have fallthru comments but are missed by the current checker. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/games/backgammon/common_source/Makefile cvs rdiff -u -r1.6 -r1.7 src/games/hunt/huntd/Makefile cvs rdiff -u -r1.8 -r1.9 src/usr.bin/stat/Makefile cvs rdiff -u -r1.56 -r1.57 src/usr.bin/telnet/Makefile cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/quotacheck/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/games/backgammon/common_source/Makefile diff -u src/games/backgammon/common_source/Makefile:1.9 src/games/backgammon/common_source/Makefile:1.10 --- src/games/backgammon/common_source/Makefile:1.9 Sat May 3 14:48:30 2008 +++ src/games/backgammon/common_source/Makefile Mon Feb 4 09:51:48 2019 @@ -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: src/games/hunt/huntd/Makefile diff -u src/games/hunt/huntd/Makefile:1.6 src/games/hunt/huntd/Makefile:1.7 --- src/games/hunt/huntd/Makefile:1.6 Sat Mar 29 22:29:55 2014 +++ src/games/hunt/huntd/Makefile Mon Feb 4 09:51:48 2019 @@ -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> Index: src/usr.bin/stat/Makefile diff -u src/usr.bin/stat/Makefile:1.8 src/usr.bin/stat/Makefile:1.9 --- src/usr.bin/stat/Makefile:1.8 Wed Aug 17 13:22:33 2011 +++ src/usr.bin/stat/Makefile Mon Feb 4 09:51:47 2019 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.8 2011/08/17 13:22:33 christos Exp $ +# $NetBSD: Makefile,v 1.9 2019/02/04 09:51:47 mrg Exp $ PROG= stat @@ -7,6 +7,13 @@ LINKS= ${BINDIR}/stat ${BINDIR}/readlink MLINKS= stat.1 readlink.1 .endif +.include <bsd.own.mk> + +# Has fallthru comment that is missed +.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" +COPTS.stat.c+= -Wno-error=implicit-fallthrough +.endif + COPTS.stat.c += -Wno-format-nonliteral .include <bsd.prog.mk> Index: src/usr.bin/telnet/Makefile diff -u src/usr.bin/telnet/Makefile:1.56 src/usr.bin/telnet/Makefile:1.57 --- src/usr.bin/telnet/Makefile:1.56 Sat Jan 5 06:59:46 2019 +++ src/usr.bin/telnet/Makefile Mon Feb 4 09:51:47 2019 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.56 2019/01/05 06:59:46 maya Exp $ +# $NetBSD: Makefile,v 1.57 2019/02/04 09:51:47 mrg Exp $ # # Copyright (c) 1990 The Regents of the University of California. # All rights reserved. @@ -77,4 +77,9 @@ DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} COPTS.${f}.c+= -Wno-pointer-sign .endfor +# Has fallthru comment that is missed +.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" +COPTS.telnet.c+= -Wno-error=implicit-fallthrough +.endif + .include <bsd.prog.mk> Index: src/usr.sbin/quotacheck/Makefile diff -u src/usr.sbin/quotacheck/Makefile:1.19 src/usr.sbin/quotacheck/Makefile:1.20 --- src/usr.sbin/quotacheck/Makefile:1.19 Sun Mar 6 23:07:23 2011 +++ src/usr.sbin/quotacheck/Makefile Mon Feb 4 09:51:48 2019 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2011/03/06 23:07:23 christos Exp $ +# $NetBSD: Makefile,v 1.20 2019/02/04 09:51:48 mrg Exp $ # @(#)Makefile 8.1 (Berkeley) 6/5/93 .include <bsd.own.mk> @@ -12,5 +12,11 @@ CPPFLAGS+=-I${NETBSDSRCDIR}/sbin/fsck -I .PATH: ${NETBSDSRCDIR}/sbin/fsck ${NETBSDSRCDIR}/sys/ufs/ffs ${NETBSDSRCDIR}/usr.bin/quota SRCS+= quotautil.c +.include <bsd.own.mk> + +# Has fallthru comment that is missed +.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc" +COPTS.quotacheck.c+= -Wno-error=implicit-fallthrough +.endif .include <bsd.prog.mk>