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/2d584bb1c2ff
branches:  trunk
changeset: 746085:2d584bb1c2ff
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 effbfc50e9de -r 2d584bb1c2ff 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