Module Name:    src
Committed By:   kamil
Date:           Wed Jun  6 14:47:54 UTC 2018

Modified Files:
        src/external/cddl/osnet: Makefile.zfs

Log Message:
Make cddl/osnet/Makefile.zfs compatible with MKLLVM=yes

Clang/LLVM does not recognize:
 - -Wno-discarded-qualifiers

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/cddl/osnet/Makefile.zfs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/Makefile.zfs
diff -u src/external/cddl/osnet/Makefile.zfs:1.5 src/external/cddl/osnet/Makefile.zfs:1.6
--- src/external/cddl/osnet/Makefile.zfs:1.5	Mon May 28 21:05:02 2018
+++ src/external/cddl/osnet/Makefile.zfs	Wed Jun  6 14:47:54 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.zfs,v 1.5 2018/05/28 21:05:02 chs Exp $
+#	$NetBSD: Makefile.zfs,v 1.6 2018/06/06 14:47:54 kamil Exp $
 
 .include <bsd.own.mk>
 
@@ -42,7 +42,9 @@ CPPFLAGS+=      -I${ZFSDIR}/dist/common
 CWARNFLAGS+=	-Wno-missing-field-initializers
 CWARNFLAGS+=	-Wno-strict-prototypes
 CWARNFLAGS+=	-Wno-cast-qual
+.if defined(HAVE_LLVM)
 CWARNFLAGS+=	-Wno-discarded-qualifiers
+.endif
 CWARNFLAGS+=	-Wno-switch
 CWARNFLAGS+=	-Wno-missing-prototypes
 CWARNFLAGS+=	-Wno-unused-variable

Reply via email to