From 0916c259074fe3a53be779ed4e2849038e5e016c Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 13 Oct 2019 07:28:04 +0000 Subject: 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." --- hunt/hunt/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hunt') diff --git a/hunt/hunt/Makefile b/hunt/hunt/Makefile index 602b31fd..e7584aa1 100644 --- a/hunt/hunt/Makefile +++ b/hunt/hunt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2014/03/30 02:26:09 dholland Exp $ +# $NetBSD: Makefile,v 1.10 2019/10/13 07:28:09 mrg Exp $ PROG= hunt SRCS= connect.c hunt.c otto.c playit.c server.c @@ -9,4 +9,6 @@ HIDEGAME=hidegame CPPFLAGS+=-I${.CURDIR}/../include +COPTS.hunt.c+= ${GCC_NO_STRINGOP_TRUNCATION} + .include -- cgit v1.2.3-56-ge451