Source-Changes-HG archive

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

[src/trunk]: src/share/mk bsd.kmodule.mk: Also sync no-address-of-packed-member.



details:   https://anonhg.NetBSD.org/src/rev/27808ebeda47
branches:  trunk
changeset: 368534:27808ebeda47
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jul 17 14:10:55 2022 +0000

description:
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.

diffstat:

 share/mk/bsd.kmodule.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 61320c9e0701 -r 27808ebeda47 share/mk/bsd.kmodule.mk
--- a/share/mk/bsd.kmodule.mk   Sun Jul 17 14:10:43 2022 +0000
+++ b/share/mk/bsd.kmodule.mk   Sun Jul 17 14:10:55 2022 +0000
@@ -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 @@
 # 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



Home | Main Index | Thread Index | Old Index