Module Name: src
Committed By: riastradh
Date: Sun Jul 17 14:10:55 UTC 2022
Modified Files:
src/share/mk: bsd.kmodule.mk
Log Message:
bsd.kmodule.mk: Also sync no-address-of-packed-member.
This is not actually a good idea to disable -- it can lead to real
problems -- but let's just make it the same for the kernel build and
module builds.
To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/share/mk/bsd.kmodule.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/mk/bsd.kmodule.mk
diff -u src/share/mk/bsd.kmodule.mk:1.78 src/share/mk/bsd.kmodule.mk:1.79
--- src/share/mk/bsd.kmodule.mk:1.78 Sun Jul 17 13:38:06 2022
+++ src/share/mk/bsd.kmodule.mk Sun Jul 17 14:10:55 2022
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.kmodule.mk,v 1.78 2022/07/17 13:38:06 riastradh Exp $
+# $NetBSD: bsd.kmodule.mk,v 1.79 2022/07/17 14:10:55 riastradh Exp $
# We are not building this with PIE
MKPIE=no
@@ -36,6 +36,8 @@ CWARNFLAGS.clang+= -Wno-error=constant-c
# XXX until the kernel is fixed again...
CFLAGS+= -fno-strict-aliasing
CWARNFLAGS+= -Wno-pointer-sign -Wno-attributes
+CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+CWARNFLAGS.clang+= -Wno-error=address-of-packed-member
# XXX This is a workaround for platforms that have relative relocations
# that, when relocated by the module loader, result in addresses that