Module Name: src
Committed By: riastradh
Date: Sat Mar 21 18:58:43 UTC 2020
Modified Files:
src/sys/rump/fs/lib/liblfs: Makefile
Log Message:
Suppress spurious address-of-packed error in rump lfs too.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/rump/fs/lib/liblfs/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/rump/fs/lib/liblfs/Makefile
diff -u src/sys/rump/fs/lib/liblfs/Makefile:1.14 src/sys/rump/fs/lib/liblfs/Makefile:1.15
--- src/sys/rump/fs/lib/liblfs/Makefile:1.14 Wed Mar 23 21:38:51 2016
+++ src/sys/rump/fs/lib/liblfs/Makefile Sat Mar 21 18:58:43 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2016/03/23 21:38:51 christos Exp $
+# $NetBSD: Makefile,v 1.15 2020/03/21 18:58:43 riastradh Exp $
#
.PATH: ${.CURDIR}/../../../../ufs/lfs
@@ -21,5 +21,10 @@ CFLAGS+= -DLFS_KERNEL_RFW
COPTS.lfs_inode.c+=-O0
.endif
+# 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 <bsd.lib.mk>
.include <bsd.klinks.mk>