summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-05-23 13:29:16 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-05-25 13:53:47 +0200
commit571610edc07b46017dceb9bda6ebda09531fccf1 (patch)
treeb5c50cca8f763919845e1d680890fc98eb6b8c3f /Makerules
parent0287ff8ba2779274914f0509c9325f881c6634f2 (diff)
downloadmupdf-571610edc07b46017dceb9bda6ebda09531fccf1.tar.xz
Add -Wdeclaration-after-statement.
This warning should help us not break Windows builds when working on Linux. Clang claims to support this warning, but seems to silently ignore it. To get any use from this we should make sure to test build with GCC.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index 62288241..8616f2fb 100644
--- a/Makerules
+++ b/Makerules
@@ -9,7 +9,7 @@ OS := $(OS:Darwin=MACOS)
HAVE_LIBDL ?= yes
-CFLAGS += -Wall
+CFLAGS += -Wall -Wdeclaration-after-statement
ifeq (,$(findstring -fembed-bitcode,$(XCFLAGS)))
# clang does not support these in combination with -fembed-bitcode