Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin use -Wno-error=format-truncation for code that seem...
details: https://anonhg.NetBSD.org/src/rev/ca484fe11d5f
branches: trunk
changeset: 448519:ca484fe11d5f
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Feb 04 10:22:15 2019 +0000
description:
use -Wno-error=format-truncation for code that seems particularly annoying
or unlikely to actually fail. some of the syslogd ones are not too hard
to fix, but most remain.
diffstat:
usr.sbin/sysinst/Makefile.inc | 7 ++++++-
usr.sbin/syslogd/Makefile | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r cc679f54a11f -r ca484fe11d5f usr.sbin/sysinst/Makefile.inc
--- a/usr.sbin/sysinst/Makefile.inc Mon Feb 04 10:09:31 2019 +0000
+++ b/usr.sbin/sysinst/Makefile.inc Mon Feb 04 10:22:15 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.16 2018/12/17 01:16:49 uwe Exp $
+# $NetBSD: Makefile.inc,v 1.17 2019/02/04 10:22:15 mrg Exp $
#
# Makefile for sysinst
@@ -118,6 +118,11 @@
COPTS.md.c += -Wno-format-nonliteral
COPTS.partman.c += -Wno-format-nonliteral -Wno-stack-protector
+# Lots of warnings
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+COPTS.partman.c+= -Wno-error=format-truncation
+.endif
+
# Host to ftp from. Default:
# "ftp.NetBSD.org"
#
diff -r cc679f54a11f -r ca484fe11d5f usr.sbin/syslogd/Makefile
--- a/usr.sbin/syslogd/Makefile Mon Feb 04 10:09:31 2019 +0000
+++ b/usr.sbin/syslogd/Makefile Mon Feb 04 10:22:15 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2018/02/09 02:23:32 christos Exp $
+# $NetBSD: Makefile,v 1.28 2019/02/04 10:22:15 mrg Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/6/93
.include <bsd.own.mk>
@@ -30,4 +30,9 @@
LDADD+= -lssl -lcrypto
+# Overflow that appears impossible
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+COPTS.syslogd.c+= -Wno-error=format-truncation
+.endif
+
.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index