Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src apply -Wno-error=implicit-fallthrough on files that have fal...
details: https://anonhg.NetBSD.org/src/rev/7120ca54108f
branches: trunk
changeset: 448510:7120ca54108f
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Feb 04 09:51:47 2019 +0000
description:
apply -Wno-error=implicit-fallthrough on files that have fallthru
comments but are missed by the current checker.
diffstat:
games/backgammon/common_source/Makefile | 9 ++++++++-
games/hunt/huntd/Makefile | 9 ++++++++-
usr.bin/stat/Makefile | 9 ++++++++-
usr.bin/telnet/Makefile | 7 ++++++-
usr.sbin/quotacheck/Makefile | 8 +++++++-
5 files changed, 37 insertions(+), 5 deletions(-)
diffs (105 lines):
diff -r 7089fd96136d -r 7120ca54108f games/backgammon/common_source/Makefile
--- a/games/backgammon/common_source/Makefile Mon Feb 04 09:40:54 2019 +0000
+++ b/games/backgammon/common_source/Makefile Mon Feb 04 09:51:47 2019 +0000
@@ -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 @@
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>
diff -r 7089fd96136d -r 7120ca54108f games/hunt/huntd/Makefile
--- a/games/hunt/huntd/Makefile Mon Feb 04 09:40:54 2019 +0000
+++ b/games/hunt/huntd/Makefile Mon Feb 04 09:51:47 2019 +0000
@@ -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 @@
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>
diff -r 7089fd96136d -r 7120ca54108f usr.bin/stat/Makefile
--- a/usr.bin/stat/Makefile Mon Feb 04 09:40:54 2019 +0000
+++ b/usr.bin/stat/Makefile Mon Feb 04 09:51:47 2019 +0000
@@ -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 @@
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>
diff -r 7089fd96136d -r 7120ca54108f usr.bin/telnet/Makefile
--- a/usr.bin/telnet/Makefile Mon Feb 04 09:40:54 2019 +0000
+++ b/usr.bin/telnet/Makefile Mon Feb 04 09:51:47 2019 +0000
@@ -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 @@
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>
diff -r 7089fd96136d -r 7120ca54108f usr.sbin/quotacheck/Makefile
--- a/usr.sbin/quotacheck/Makefile Mon Feb 04 09:40:54 2019 +0000
+++ b/usr.sbin/quotacheck/Makefile Mon Feb 04 09:51:47 2019 +0000
@@ -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 @@
.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>
Home |
Main Index |
Thread Index |
Old Index