aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2020-12-01 08:02:50 -0800
committerYann Collet <cyan@fb.com>2020-12-01 08:05:19 -0800
commit4b7a3270689127e60a586e2231b3d2b7a47c4a79 (patch)
treec80209514ed8a4fe88d49b4639294b2ecaad75ab /Makefile
parent50ff8b3ae8a3397571f5d3b96a1d85ea29760a65 (diff)
downloadlz4-4b7a3270689127e60a586e2231b3d2b7a47c4a79.tar.gz
fix strange printf formatting warning
so now, `%p` _requires_ a `void*` pointer ?
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cce932fd..c3f42dd2 100644
--- a/Makefile
+++ b/Makefile
@@ -134,7 +134,8 @@ test:
$(MAKE) -C $(EXDIR) $@
.PHONY: clangtest
-clangtest: CFLAGS ?= -O3 # strangely, this line has the hidden side effect of `unexport CFLAGS`
+clangtest: CFLAGS ?= -O3 # make's bug (http://savannah.gnu.org/bugs/?func=detailitem&item_id=59230)
+# this line has the hidden side effect of `unexport CFLAGS`
export CFLAGS # fix the side effect by issuing export command
clangtest: CFLAGS += -Werror -Wconversion -Wno-sign-conversion
clangtest: CC = clang
@@ -189,7 +190,7 @@ versionsTest: clean
$(MAKE) -C $(TESTDIR) $@
.PHONY: cxxtest cxx32test
-cxxtest cxx32test: CC = "$(CXX) -Wno-deprecated"
+cxxtest cxx32test: CC := "$(CXX) -Wno-deprecated"
cxxtest cxx32test: CFLAGS = -O3 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Werror
cxx32test: CFLAGS += -m32
cxxtest cxx32test: clean