Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/fs/lib/liblfs Suppress spurious address-of-packed e...



details:   https://anonhg.NetBSD.org/src/rev/f68b5c5710ae
branches:  trunk
changeset: 970360:f68b5c5710ae
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Mar 21 18:58:43 2020 +0000

description:
Suppress spurious address-of-packed error in rump lfs too.

diffstat:

 sys/rump/fs/lib/liblfs/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 9851d73cbcbd -r f68b5c5710ae sys/rump/fs/lib/liblfs/Makefile
--- a/sys/rump/fs/lib/liblfs/Makefile   Sat Mar 21 18:47:54 2020 +0000
+++ b/sys/rump/fs/lib/liblfs/Makefile   Sat Mar 21 18:58:43 2020 +0000
@@ -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 @@
 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>



Home | Main Index | Thread Index | Old Index