apply -Wno-error=implicit-fallthrough on files that have fallthru
comments but are missed by the current checker.
This commit is contained in:
parent
3bb4805c2b
commit
a5ca97c6e5
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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${NETBSDSRCDIR}/usr.bin/quota
|
|||
.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>
|
||||
|
|
Loading…
Reference in New Issue