summaryrefslogtreecommitdiff
path: root/sbin/dump
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
commit4faa74e8532059a71c549148788bd27f6f3b91d6 (patch)
tree466c18bb4ca86346b8dc6b53b3f34b2ea1ca6a25 /sbin/dump
parentb2c5aa9031eacf43fc1fc4e83e1d68f6bb8b068e (diff)
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 'sbin/dump')
-rw-r--r--sbin/dump/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/dump/Makefile b/sbin/dump/Makefile
index 11de7316008..d26e64b4cec 100644
--- a/sbin/dump/Makefile
+++ b/sbin/dump/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2012/08/10 12:20:11 joerg Exp $
+# $NetBSD: Makefile,v 1.40 2019/10/13 07:28:12 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
# dump.h header file
@@ -38,5 +38,6 @@ LDADD+= -lutil
.PATH: ${NETBSDSRCDIR}/sys/ufs/ffs
COPTS.ffs_inode.c+= -Wno-pointer-sign
+COPTS.traverse.c+= ${GCC_NO_FORMAT_TRUNCATION}
.include <bsd.prog.mk>