summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Heenan <joseph@emobix.co.uk>2015-02-25 15:03:26 +0000
committerJoseph Heenan <joseph@emobix.co.uk>2015-02-25 16:06:03 +0000
commit5c0038c6b709ca920028b0b904793071f2d48283 (patch)
tree40482fe2365d5ec1e88dbbdb2b082e509db37ae3
parent7afb6a8d8efa894aad5a6dca5b429c367fe6c73e (diff)
downloadmupdf-5c0038c6b709ca920028b0b904793071f2d48283.tar.xz
iOS: Suppress warnings about unused functions
There are a fair number of warnings about unused functions, mostly in third-party modules, and we would like the build to be warning free. We need to change the main Makefile, as -Wall is currently added in Makerules, and we need our -Wno-unused-function in XCFLAGS to be after -Wall on the command line for it to have any effect.
-rw-r--r--Makefile6
-rw-r--r--platform/ios/build_libs.sh2
2 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index aad26389..8a0b01cf 100644
--- a/Makefile
+++ b/Makefile
@@ -9,15 +9,15 @@ default: all
# --- Configuration ---
+include Makerules
+include Makethird
+
# Do not specify CFLAGS or LIBS on the make invocation line - specify
# XCFLAGS or XLIBS instead. Make ignores any lines in the makefile that
# set a variable that was set on the command line.
CFLAGS += $(XCFLAGS) -Iinclude -I$(GEN)
LIBS += $(XLIBS) -lm
-include Makerules
-include Makethird
-
THIRD_LIBS += $(FREETYPE_LIB)
THIRD_LIBS += $(JBIG2DEC_LIB)
THIRD_LIBS += $(JPEG_LIB)
diff --git a/platform/ios/build_libs.sh b/platform/ios/build_libs.sh
index 966a0b7e..4882575b 100644
--- a/platform/ios/build_libs.sh
+++ b/platform/ios/build_libs.sh
@@ -14,7 +14,7 @@ fi
export OS=ios
export build=$(echo $CONFIGURATION | tr A-Z a-z)
-FLAGS=""
+FLAGS="-Wno-unused-function"
for A in $ARCHS
do
FLAGS="$FLAGS -arch $A"