Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin apply GCC_NO_ADDR_OF_PACKED_MEMBER
details: https://anonhg.NetBSD.org/src/rev/c9ca0dd40d30
branches: trunk
changeset: 954585:c9ca0dd40d30
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Sep 07 00:26:23 2020 +0000
description:
apply GCC_NO_ADDR_OF_PACKED_MEMBER
diffstat:
usr.bin/kdump/Makefile | 4 +++-
usr.bin/ktruss/Makefile | 4 +++-
usr.bin/tftp/Makefile | 7 ++++---
usr.bin/xinstall/Makefile | 5 +++--
4 files changed, 13 insertions(+), 7 deletions(-)
diffs (73 lines):
diff -r 5e64cee54f6f -r c9ca0dd40d30 usr.bin/kdump/Makefile
--- a/usr.bin/kdump/Makefile Mon Sep 07 00:24:37 2020 +0000
+++ b/usr.bin/kdump/Makefile Mon Sep 07 00:26:23 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2020/04/02 03:32:46 kamil Exp $
+# $NetBSD: Makefile,v 1.34 2020/09/07 00:26:23 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
.include <bsd.own.mk> # for MKDYNAMICROOT & NETBSDSRCDIR
@@ -24,4 +24,6 @@
LDADD+=-lutil
DPADD+=${LIBUTIL}
+CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+
.include <bsd.prog.mk>
diff -r 5e64cee54f6f -r c9ca0dd40d30 usr.bin/ktruss/Makefile
--- a/usr.bin/ktruss/Makefile Mon Sep 07 00:24:37 2020 +0000
+++ b/usr.bin/ktruss/Makefile Mon Sep 07 00:26:23 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2016/01/23 21:22:49 christos Exp $
+# $NetBSD: Makefile,v 1.31 2020/09/07 00:26:23 mrg Exp $
NOMAN= # defined
@@ -32,6 +32,8 @@
CPPFLAGS+= -I. -I${NETBSDSRCDIR}/usr.bin/ktrace -I${NETBSDSRCDIR}/sys \
-I${NETBSDSRCDIR}/usr.bin/kdump -DKTRUSS -D_KERNTYPES
+CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+
.include <bsd.prog.mk>
.PATH: ${NETBSDSRCDIR}/usr.bin/ktrace ${NETBSDSRCDIR}/usr.bin/kdump
diff -r 5e64cee54f6f -r c9ca0dd40d30 usr.bin/tftp/Makefile
--- a/usr.bin/tftp/Makefile Mon Sep 07 00:24:37 2020 +0000
+++ b/usr.bin/tftp/Makefile Mon Sep 07 00:26:23 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2020/02/08 13:33:56 fox Exp $
+# $NetBSD: Makefile,v 1.14 2020/09/07 00:26:24 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
WARNS?=2
@@ -8,7 +8,8 @@
PROG= tftp
SRCS= main.c tftp.c tftpsubs.c
-COPTS.tftp.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-array-bounds :}
-COPTS.tftp.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} == 8:? -Wno-error=format-overflow :}
+CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} \
+ ${GCC_NO_STRINGOP_OVERFLOW} \
+ ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-array-bounds :}
.include <bsd.prog.mk>
diff -r 5e64cee54f6f -r c9ca0dd40d30 usr.bin/xinstall/Makefile
--- a/usr.bin/xinstall/Makefile Mon Sep 07 00:24:37 2020 +0000
+++ b/usr.bin/xinstall/Makefile Mon Sep 07 00:26:23 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2015/10/10 22:54:03 dholland Exp $
+# $NetBSD: Makefile,v 1.27 2020/09/07 00:26:24 mrg Exp $
# @(#)Makefile 8.1 (Berkeley) 6/6/93
.include <bsd.own.mk>
@@ -21,7 +21,8 @@
COPTS.xinstall.c += -Wno-format-nonliteral
-
PROGNAME=install
+CWARNFLAGS.gcc+= ${GCC_NO_FORMAT_TRUNCATION}
+
.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index