Module Name: src
Committed By: rin
Date: Wed Jun 3 02:51:40 UTC 2020
Modified Files:
src/sys/arch/sparc/stand/boot: Makefile
Log Message:
Appease clang -Waddress-of-packed-member for <ufs/lfs/lfs_accessors.h>,
in the same manner as done for sparc64; pointer substitution is just for
sanity check and harmless there.
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/sparc/stand/boot/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc/stand/boot/Makefile
diff -u src/sys/arch/sparc/stand/boot/Makefile:1.42 src/sys/arch/sparc/stand/boot/Makefile:1.43
--- src/sys/arch/sparc/stand/boot/Makefile:1.42 Fri Apr 28 13:38:35 2017
+++ src/sys/arch/sparc/stand/boot/Makefile Wed Jun 3 02:51:39 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2017/04/28 13:38:35 christos Exp $
+# $NetBSD: Makefile,v 1.43 2020/06/03 02:51:39 rin Exp $
STRIPFLAG=
PROGSOURCE= boot.c net.c netif_sun.c conf.c openfirm.c bootinfo.c \
@@ -14,6 +14,11 @@ CFLAGS+= -freestanding
INCLUDE_LIBZ= yes
SAMISCMAKEFLAGS= SA_USE_CREAD=yes
+# 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
+
.include "../Makefile.buildboot"
.if ${MACHINE} == sparc64