Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Use -Wno-error=address-of-packed-member for a numbe...



details:   https://anonhg.NetBSD.org/src/rev/2d8dbcebf9e5
branches:  trunk
changeset: 971332:2d8dbcebf9e5
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Apr 21 21:39:07 2020 +0000

description:
Use -Wno-error=address-of-packed-member for a number of more boot
loaders.

diffstat:

 sys/arch/macppc/stand/Makefile.inc |  9 ++++++++-
 sys/arch/zaurus/stand/Makefile.inc |  9 ++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 54a6d39e4b63 -r 2d8dbcebf9e5 sys/arch/macppc/stand/Makefile.inc
--- a/sys/arch/macppc/stand/Makefile.inc        Tue Apr 21 20:20:39 2020 +0000
+++ b/sys/arch/macppc/stand/Makefile.inc        Tue Apr 21 21:39:07 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.4 2017/04/20 19:09:29 uwe Exp $
+#      $NetBSD: Makefile.inc,v 1.5 2020/04/21 21:39:07 joerg Exp $
 
 BINDIR=                /usr/mdec
 
@@ -6,3 +6,10 @@
 CFLAGS_UNWIND.clang=   -fno-unwind-tables
 
 LINKFLAGS_UNWIND=      --no-ld-generated-unwind-info
+
+# 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
+
+COPTS+=        -fcommon
diff -r 54a6d39e4b63 -r 2d8dbcebf9e5 sys/arch/zaurus/stand/Makefile.inc
--- a/sys/arch/zaurus/stand/Makefile.inc        Tue Apr 21 20:20:39 2020 +0000
+++ b/sys/arch/zaurus/stand/Makefile.inc        Tue Apr 21 21:39:07 2020 +0000
@@ -1,4 +1,11 @@
-#      $NetBSD: Makefile.inc,v 1.5 2016/01/23 22:28:09 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.6 2020/04/21 21:39:07 joerg Exp $
 
 BINDIR=                /usr/mdec
 KLINK_MACHINE= zaurus
+
+# 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
+
+COPTS+=        -fcommon



Home | Main Index | Thread Index | Old Index