Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/stand/ofwboot More -Wno-error=address-of-pack...



details:   https://anonhg.NetBSD.org/src/rev/1ac17fb59fd2
branches:  trunk
changeset: 931016:1ac17fb59fd2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Apr 20 02:04:44 2020 +0000

description:
More -Wno-error=address-of-packed-member to placate clang.

diffstat:

 sys/arch/sparc/stand/ofwboot/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 02b7aa843b0d -r 1ac17fb59fd2 sys/arch/sparc/stand/ofwboot/Makefile
--- a/sys/arch/sparc/stand/ofwboot/Makefile     Mon Apr 20 00:35:41 2020 +0000
+++ b/sys/arch/sparc/stand/ofwboot/Makefile     Mon Apr 20 02:04:44 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.38 2017/04/08 19:53:23 christos Exp $
+#      $NetBSD: Makefile,v 1.39 2020/04/20 02:04:44 riastradh Exp $
 
 .include <bsd.init.mk>
 
@@ -38,6 +38,11 @@
 #CPPFLAGS+=    -DNETIF_DEBUG 
 #CPPFLAGS+=    -D_DEBUG
 
+# Follow the suit of Makefile.kern.inc; needed for the lfs64 union
+# accessors -- they don't actually dereference the resulting pointer,
+# just use it for type-checking.
+CWARNFLAGS.clang+=     -Wno-error=address-of-packed-member
+
 LINKS+=                ${BINDIR}/ofwboot ${BINDIR}/ofwboot.net
 
 NOMAN=         # defined



Home | Main Index | Thread Index | Old Index