summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-12-13 14:56:28 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-12-13 21:05:30 +0100
commita66a5541639ffac0a5265616f652f7663804dc87 (patch)
treee13d2256b6987fc64d1fa6d0579d56a588e64ea5 /Makefile
parenteacd070190d0c7a7fbc905a2a292f38e282b5a82 (diff)
downloadmupdf-a66a5541639ffac0a5265616f652f7663804dc87.tar.xz
Don't pass -Wdeclaration-after-statement to C++ compiler.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0f0c5b69..5379bf95 100644
--- a/Makefile
+++ b/Makefile
@@ -72,7 +72,7 @@ QUIET_WINDRES = @ echo ' ' ' ' WINDRES $@ ;
endif
CC_CMD = $(QUIET_CC) $(CC) $(CFLAGS) -o $@ -c $<
-CXX_CMD = $(QUIET_CXX) $(CXX) $(CFLAGS) -o $@ -c $<
+CXX_CMD = $(QUIET_CXX) $(CXX) $(filter-out -Wdeclaration-after-statement,$(CFLAGS)) -o $@ -c $<
AR_CMD = $(QUIET_AR) $(AR) cr $@ $^
LINK_CMD = $(QUIET_LINK) $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
MKDIR_CMD = $(QUIET_MKDIR) mkdir -p $@