diff options
author | mrg <mrg@NetBSD.org> | 2019-02-04 09:51:47 +0000 |
---|---|---|
committer | mrg <mrg@NetBSD.org> | 2019-02-04 09:51:47 +0000 |
commit | 7d510aa1191273df4f27b92b41d3f45449b05cea (patch) | |
tree | 2187629d04eb2a5cd0f8204f42e3131adfdd124f /backgammon/common_source | |
parent | 2f8d2b7cde6122b350f19b5e530831f6d876ccff (diff) | |
download | bsdgames-darwin-7d510aa1191273df4f27b92b41d3f45449b05cea.tar.gz bsdgames-darwin-7d510aa1191273df4f27b92b41d3f45449b05cea.tar.zst bsdgames-darwin-7d510aa1191273df4f27b92b41d3f45449b05cea.zip |
apply -Wno-error=implicit-fallthrough on files that have fallthru
comments but are missed by the current checker.
Diffstat (limited to 'backgammon/common_source')
-rw-r--r-- | backgammon/common_source/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
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 <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> |