Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/usr.sbin/dtrace Make cddl/osnet/usr.sbin...



details:   https://anonhg.NetBSD.org/src/rev/8ba74b7976c4
branches:  trunk
changeset: 323262:8ba74b7976c4
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed Jun 06 14:31:45 2018 +0000

description:
Make cddl/osnet/usr.sbin/dtrace -W compatible with MKLLVM=yes

Clang/LLVM does not recognize:
 - -Wno-discarded-qualifiers
 - -Wno-unused-but-set-variable

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

Sponsored by <The NetBSD Foundation>

diffstat:

 external/cddl/osnet/usr.sbin/dtrace/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 6e5ac2f92a04 -r 8ba74b7976c4 external/cddl/osnet/usr.sbin/dtrace/Makefile
--- a/external/cddl/osnet/usr.sbin/dtrace/Makefile      Wed Jun 06 14:18:39 2018 +0000
+++ b/external/cddl/osnet/usr.sbin/dtrace/Makefile      Wed Jun 06 14:31:45 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.10 2018/05/28 21:05:11 chs Exp $
+#      $NetBSD: Makefile,v 1.11 2018/06/06 14:31:45 kamil Exp $
 
 # $FreeBSD: head/cddl/usr.sbin/dtrace/Makefile 314654 2017-03-04 11:30:04Z ngie $
 
@@ -32,9 +32,11 @@
 COPTS.dtrace.c += -Wno-format-extra-args
 
 COPTS.dtrace.c += -Wno-shadow
+.if defined(HAVE_GCC)
 COPTS.dtrace.c += -Wno-discarded-qualifiers
+COPTS.dtrace.c += -Wno-unused-but-set-variable
+.endif
 COPTS.dtrace.c += -Wno-missing-field-initializers
-COPTS.dtrace.c += -Wno-unused-but-set-variable
 COPTS.dtrace.c += -Wno-format
 
 LDFLAGS+=      -pthread



Home | Main Index | Thread Index | Old Index