From: Nadav Har'El <n...@scylladb.com>
Committer: Nadav Har'El <n...@scylladb.com>
Branch: master

makefile: avoid known warning for exp2l.c

In musl/src/math/exp2l.c we have a known warning:

musl/src/math/exp2l.c:206:22: warning: unused variable ā€˜vā€™ [-Wunused-variable]

We already made sure this warning doesn't cause a compilation error, but
let's not show this warning at all.
Instead, we could have fixed the source file to not cause this warning.
But we took this file unmodified from Musl, and don't want to modify it
just to get rid of a warning.

Signed-off-by: Nadav Har'El <n...@scylladb.com>
Message-Id: <20170202135725.6605-1-...@scylladb.com>

---
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -1131,7 +1131,7 @@ musl += math/exp10l.o
 musl += math/exp2.o
 musl += math/exp2f.o
 musl += math/exp2l.o
-$(out)/musl/src/math/exp2l.o: CFLAGS += -Wno-error=unused-variable
+$(out)/musl/src/math/exp2l.o: CFLAGS += -Wno-unused-variable
 musl += math/expf.o
 musl += math/expl.o
 musl += math/expm1.o

--
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to