Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/modules use the GCC_ warning variable



details:   https://anonhg.NetBSD.org/src/rev/151f47484a17
branches:  trunk
changeset: 945000:151f47484a17
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 18 15:02:12 2020 +0000

description:
use the GCC_ warning variable

diffstat:

 sys/modules/ffs/Makefile        |   5 +++--
 sys/modules/ipl/Makefile        |  16 ++++++++--------
 sys/modules/npf/Makefile        |   5 +++--
 sys/modules/pf/Makefile         |   8 ++++----
 sys/modules/slcompress/Makefile |   5 ++++-
 5 files changed, 22 insertions(+), 17 deletions(-)

diffs (106 lines):

diff -r a57475c0f056 -r 151f47484a17 sys/modules/ffs/Makefile
--- a/sys/modules/ffs/Makefile  Sun Oct 18 14:58:45 2020 +0000
+++ b/sys/modules/ffs/Makefile  Sun Oct 18 15:02:12 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.16 2020/10/18 14:33:28 christos Exp $
+#      $NetBSD: Makefile,v 1.17 2020/10/18 15:02:12 christos Exp $
 
 .include "../Makefile.inc"
 
@@ -9,7 +9,8 @@
 CPPFLAGS+=     -DUFS_EXTATTR -DUFS_ACL
 
 CWARNFLAGS.clang=      -Wno-conversion
-COPTS.ffs_appleufs.c += -Wno-error=address-of-packed-member
+CWARNFLAGS.ffs_appleufs.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+
 
 SRCS+= ffs_alloc.c ffs_balloc.c ffs_inode.c ffs_subr.c ffs_tables.c \
        ffs_vfsops.c ffs_vnops.c ffs_snapshot.c ffs_extattr.c \
diff -r a57475c0f056 -r 151f47484a17 sys/modules/ipl/Makefile
--- a/sys/modules/ipl/Makefile  Sun Oct 18 14:58:45 2020 +0000
+++ b/sys/modules/ipl/Makefile  Sun Oct 18 15:02:12 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.4 2020/10/18 14:33:40 christos Exp $
+#      $NetBSD: Makefile,v 1.5 2020/10/18 15:02:12 christos Exp $
 #
 
 .include "../Makefile.inc"
@@ -57,12 +57,12 @@
 WARNS= 3
 
 CWARNFLAGS.clang+=     -Wno-self-assign
-COPTS.fil.c += -Wno-error=address-of-packed-member
-COPTS.ip_fil_netbsd.c += -Wno-error=address-of-packed-member
-COPTS.ip_htable.c += -Wno-error=address-of-packed-member
-COPTS.ip_nat.c += -Wno-error=address-of-packed-member
-COPTS.ip_nat6.c += -Wno-error=address-of-packed-member
-COPTS.ip_proxy.c += -Wno-error=address-of-packed-member
-COPTS.ip_state.c += -Wno-error=address-of-packed-member
+CWARNFLAGS.fil.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+CWARNFLAGS.ip_fil_netbsd.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+CWARNFLAGS.ip_htable.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+CWARNFLAGS.ip_nat.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+CWARNFLAGS.ip_nat6.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+CWARNFLAGS.ip_proxy.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+CWARNFLAGS.ip_state.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
 
 .include <bsd.kmodule.mk>
diff -r a57475c0f056 -r 151f47484a17 sys/modules/npf/Makefile
--- a/sys/modules/npf/Makefile  Sun Oct 18 14:58:45 2020 +0000
+++ b/sys/modules/npf/Makefile  Sun Oct 18 15:02:12 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2020/10/18 14:34:39 christos Exp $
+# $NetBSD: Makefile,v 1.27 2020/10/18 15:02:12 christos Exp $
 #
 # Public Domain.
 #
@@ -21,6 +21,7 @@
 CPPFLAGS+=     -DINET6
 CPPFLAGS+=     -I${S}/external/bsd/libnv/dist
 
-COPTS.npf_inet.c += -Wno-error=address-of-packed-member
+CWARNFLAGS.npf_inet.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+
 
 .include <bsd.kmodule.mk>
diff -r a57475c0f056 -r 151f47484a17 sys/modules/pf/Makefile
--- a/sys/modules/pf/Makefile   Sun Oct 18 14:58:45 2020 +0000
+++ b/sys/modules/pf/Makefile   Sun Oct 18 15:02:12 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2020/10/18 14:36:43 christos Exp $
+# $NetBSD: Makefile,v 1.14 2020/10/18 15:02:12 christos Exp $
 
 .include "../Makefile.inc"
 
@@ -25,8 +25,8 @@
 .if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
 COPTS.pf.c+=   -Wno-error=implicit-fallthrough
 .endif
-COPTS.pf.c += -Wno-error=address-of-packed-member
-COPTS.pf_norm.c += -Wno-error=address-of-packed-member
-COPTS.pf_table.c += -Wno-error=address-of-packed-member
+CWARNFLAGS.pf.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+CWARNFLAGS.pf_norm.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+CWARNFLAGS.pf_table.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
 
 .include <bsd.kmodule.mk>
diff -r a57475c0f056 -r 151f47484a17 sys/modules/slcompress/Makefile
--- a/sys/modules/slcompress/Makefile   Sun Oct 18 14:58:45 2020 +0000
+++ b/sys/modules/slcompress/Makefile   Sun Oct 18 15:02:12 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.2 2019/02/17 04:05:57 rin Exp $
+#      $NetBSD: Makefile,v 1.3 2020/10/18 15:02:12 christos Exp $
 
 .include "../Makefile.inc"
 
@@ -9,6 +9,9 @@
 
 CPPFLAGS+=     -DINET
 
+CWARNFLAGS.slcompress.c+=   ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+
+
 WARNS= 3
 
 .include <bsd.kmodule.mk>



Home | Main Index | Thread Index | Old Index