From 426878bef0083fc6d05514af957f9bf03f05ee0a Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Wed, 12 Mar 2014 14:32:23 +0100 Subject: [PATCH] Fix Xcode 5.1 / Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn) complains about unused command line args --- submodules/build/iphone-config.site | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/submodules/build/iphone-config.site b/submodules/build/iphone-config.site index 2c070168e..a81401077 100644 --- a/submodules/build/iphone-config.site +++ b/submodules/build/iphone-config.site @@ -43,6 +43,10 @@ for SYSROOT_PATH in $SDK_PATH_LIST ; do echo $SYSROOT_PATH ; done ; echo "Selecting SDK path = ${SYSROOT_PATH}" COMMON_FLAGS=" -arch ${ARCH} ${MCPU} -isysroot ${SYSROOT_PATH} -${CLANG_TARGET_SPECIFIER}=${SDK_VERSION} -DTARGET_OS_IPHONE=1 -D__IOS -fms-extensions" + +# silence clang unused operators. This is temporary, we should find a way to compile 3rd party with correct flags :( +COMMON_FLAGS="-Qunused-arguments -Wno-unused-command-line-argument-hard-error-in-future $COMMON_FLAGS" + CC="xcrun clang -std=c99 $COMMON_FLAGS" OBJC="xcrun clang -std=c99 $COMMON_FLAGS" CXX="xcrun clang++ $COMMON_FLAGS"