Source-Changes-HG archive

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

[src/trunk]: src/sys/modules Avoid alignment of packed member



details:   https://anonhg.NetBSD.org/src/rev/e7ecc564cee1
branches:  trunk
changeset: 955984:e7ecc564cee1
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 18 14:33:28 2020 +0000

description:
Avoid alignment of packed member

diffstat:

 sys/modules/ffs/Makefile |  3 ++-
 sys/modules/ipl/Makefile |  9 ++++++++-
 sys/modules/npf/Makefile |  4 +++-
 3 files changed, 13 insertions(+), 3 deletions(-)

diffs (55 lines):

diff -r ac32228eed57 -r e7ecc564cee1 sys/modules/ffs/Makefile
--- a/sys/modules/ffs/Makefile  Sun Oct 18 14:32:04 2020 +0000
+++ b/sys/modules/ffs/Makefile  Sun Oct 18 14:33:28 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.15 2020/05/16 18:31:52 christos Exp $
+#      $NetBSD: Makefile,v 1.16 2020/10/18 14:33:28 christos Exp $
 
 .include "../Makefile.inc"
 
@@ -9,6 +9,7 @@
 CPPFLAGS+=     -DUFS_EXTATTR -DUFS_ACL
 
 CWARNFLAGS.clang=      -Wno-conversion
+COPTS.ffs_appleufs.c += -Wno-error=address-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 ac32228eed57 -r e7ecc564cee1 sys/modules/ipl/Makefile
--- a/sys/modules/ipl/Makefile  Sun Oct 18 14:32:04 2020 +0000
+++ b/sys/modules/ipl/Makefile  Sun Oct 18 14:33:28 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2019/02/17 04:05:53 rin Exp $
+#      $NetBSD: Makefile,v 1.4 2020/10/18 14:33:40 christos Exp $
 #
 
 .include "../Makefile.inc"
@@ -57,5 +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
 
 .include <bsd.kmodule.mk>
diff -r ac32228eed57 -r e7ecc564cee1 sys/modules/npf/Makefile
--- a/sys/modules/npf/Makefile  Sun Oct 18 14:32:04 2020 +0000
+++ b/sys/modules/npf/Makefile  Sun Oct 18 14:33:28 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2019/09/26 18:45:00 christos Exp $
+# $NetBSD: Makefile,v 1.26 2020/10/18 14:34:39 christos Exp $
 #
 # Public Domain.
 #
@@ -21,4 +21,6 @@
 CPPFLAGS+=     -DINET6
 CPPFLAGS+=     -I${S}/external/bsd/libnv/dist
 
+COPTS.npf_inet.c += -Wno-error=address-of-packed-member
+
 .include <bsd.kmodule.mk>



Home | Main Index | Thread Index | Old Index