Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/modules/dtrace/dtrace Restrict -Wno-unused-but-set-varia...
details:   https://anonhg.NetBSD.org/src/rev/fdb939bd79e8
branches:  trunk
changeset: 362379:fdb939bd79e8
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed Jun 06 15:15:41 2018 +0000
description:
Restrict -Wno-unused-but-set-variable in sys/modules/dtrace/dtrace to GCC
Clang/LLVM does not recognize it.
This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.
Sponsored by <The NetBSD Foundation>
diffstat:
 sys/modules/dtrace/dtrace/Makefile |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 747e5c7c7fe0 -r fdb939bd79e8 sys/modules/dtrace/dtrace/Makefile
--- a/sys/modules/dtrace/dtrace/Makefile        Wed Jun 06 15:01:13 2018 +0000
+++ b/sys/modules/dtrace/dtrace/Makefile        Wed Jun 06 15:15:41 2018 +0000
@@ -54,8 +54,10 @@
                -Wno-parentheses \
                -Wno-uninitialized
 
+.if defined(HAVE_GCC)
 COPTS.dtrace.c+= \
-               -Wno-unused-but-set-variable \
+               -Wno-unused-but-set-variable
+.endif
 
 COPTS.dtrace_subr.c+= \
                -Wno-unused-value
Home |
Main Index |
Thread Index |
Old Index