Module Name: src Committed By: christos Date: Sun Oct 18 15:02:12 UTC 2020
Modified Files: src/sys/modules/ffs: Makefile src/sys/modules/ipl: Makefile src/sys/modules/npf: Makefile src/sys/modules/pf: Makefile src/sys/modules/slcompress: Makefile Log Message: use the GCC_ warning variable To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/modules/ffs/Makefile cvs rdiff -u -r1.4 -r1.5 src/sys/modules/ipl/Makefile cvs rdiff -u -r1.26 -r1.27 src/sys/modules/npf/Makefile cvs rdiff -u -r1.13 -r1.14 src/sys/modules/pf/Makefile cvs rdiff -u -r1.2 -r1.3 src/sys/modules/slcompress/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/modules/ffs/Makefile diff -u src/sys/modules/ffs/Makefile:1.16 src/sys/modules/ffs/Makefile:1.17 --- src/sys/modules/ffs/Makefile:1.16 Sun Oct 18 10:33:28 2020 +++ src/sys/modules/ffs/Makefile Sun Oct 18 11:02:12 2020 @@ -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_DIRHASH -DFFS_EI - 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 \ Index: src/sys/modules/ipl/Makefile diff -u src/sys/modules/ipl/Makefile:1.4 src/sys/modules/ipl/Makefile:1.5 --- src/sys/modules/ipl/Makefile:1.4 Sun Oct 18 10:33:40 2020 +++ src/sys/modules/ipl/Makefile Sun Oct 18 11:02:12 2020 @@ -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 @@ SRCS+= radix_ipf.c 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> Index: src/sys/modules/npf/Makefile diff -u src/sys/modules/npf/Makefile:1.26 src/sys/modules/npf/Makefile:1.27 --- src/sys/modules/npf/Makefile:1.26 Sun Oct 18 10:34:39 2020 +++ src/sys/modules/npf/Makefile Sun Oct 18 11:02:12 2020 @@ -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 @@ SRCS+= nvlist.c nvpair.c nv_kern_netbsd 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> Index: src/sys/modules/pf/Makefile diff -u src/sys/modules/pf/Makefile:1.13 src/sys/modules/pf/Makefile:1.14 --- src/sys/modules/pf/Makefile:1.13 Sun Oct 18 10:36:43 2020 +++ src/sys/modules/pf/Makefile Sun Oct 18 11:02:12 2020 @@ -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 @@ WARNS= 3 .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> Index: src/sys/modules/slcompress/Makefile diff -u src/sys/modules/slcompress/Makefile:1.2 src/sys/modules/slcompress/Makefile:1.3 --- src/sys/modules/slcompress/Makefile:1.2 Sat Feb 16 23:05:57 2019 +++ src/sys/modules/slcompress/Makefile Sun Oct 18 11:02:12 2020 @@ -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 @@ SRCS= slcompress.c CPPFLAGS+= -DINET +CWARNFLAGS.slcompress.c+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} + + WARNS= 3 .include <bsd.kmodule.mk>