Source-Changes-HG archive

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

[src/trunk]: src/share/mk Handle the no-addr-of-packed-member only for the fi...



details:   https://anonhg.NetBSD.org/src/rev/bbb7abb1ba81
branches:  trunk
changeset: 945021:bbb7abb1ba81
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 18 19:57:44 2020 +0000

description:
Handle the no-addr-of-packed-member only for the files that need it, not
globally.

diffstat:

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

diffs (19 lines):

diff -r 3f0e4c6a3459 -r bbb7abb1ba81 share/mk/bsd.kmodule.mk
--- a/share/mk/bsd.kmodule.mk   Sun Oct 18 19:56:41 2020 +0000
+++ b/share/mk/bsd.kmodule.mk   Sun Oct 18 19:57:44 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.kmodule.mk,v 1.71 2020/09/10 02:34:13 rin Exp $
+#      $NetBSD: bsd.kmodule.mk,v 1.72 2020/10/18 19:57:44 christos Exp $
 
 # We are not building this with PIE
 MKPIE=no
@@ -31,8 +31,7 @@
 CPPFLAGS+=     -isystem ${S}/../common/include
 CPPFLAGS+=     -D_KERNEL -D_MODULE -DSYSCTL_INCLUDE_DESCR
 
-CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member -Wno-error=constant-conversion
-CWARNFLAGS.gcc+=       ${GCC_NO_ADDR_OF_PACKED_MEMBER}
+CWARNFLAGS.clang+=     -Wno-error=constant-conversion
 
 # XXX until the kernel is fixed again...
 CFLAGS+=       -fno-strict-aliasing -Wno-pointer-sign



Home | Main Index | Thread Index | Old Index