summaryrefslogtreecommitdiffstats
path: root/tetris
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2019-10-13 07:28:04 +0000
committermrg <mrg@NetBSD.org>2019-10-13 07:28:04 +0000
commit0916c259074fe3a53be779ed4e2849038e5e016c (patch)
tree927db2218f9785c0a3172acb1a37d6244d0f88b7 /tetris
parentee35c5e8f222ee16db93ebbc9ce428c3defe8a95 (diff)
downloadbsdgames-darwin-0916c259074fe3a53be779ed4e2849038e5e016c.tar.gz
bsdgames-darwin-0916c259074fe3a53be779ed4e2849038e5e016c.tar.zst
bsdgames-darwin-0916c259074fe3a53be779ed4e2849038e5e016c.zip
introduce some common variables for use in GCC warning disables:
GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8) GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8) GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8) GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8) use these to turn off warnings for most GCC-8 complaints. many of these are false positives, most of the real bugs are already commited, or are yet to come. we plan to introduce versions of (some?) of these that use the "-Wno-error=" form, which still displays the warnings but does not make it an error, and all of the above will be re-considered as either being "fix me" (warning still displayed) or "warning is wrong."
Diffstat (limited to 'tetris')
-rw-r--r--tetris/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/tetris/Makefile b/tetris/Makefile
index 25a3639a..c0ccc604 100644
--- a/tetris/Makefile
+++ b/tetris/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2010/02/03 15:34:39 roy Exp $
+# $NetBSD: Makefile,v 1.8 2019/10/13 07:28:10 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
PROG= tetris
@@ -9,4 +9,6 @@ LDADD= -lterminfo
HIDEGAME=hidegame
SETGIDGAME=yes
+COPTS.tetris.c+= ${GCC_NO_FORMAT_TRUNCATION}
+
.include <bsd.prog.mk>