mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
CREATE_PROJECT: Update Xcode generator to use most Xcode-recommended warnings
This commit is contained in:
parent
d282e5c3f3
commit
2191533d4f
@ -859,16 +859,34 @@ void XcodeProvider::setupBuildConfiguration(const BuildSetup &setup) {
|
||||
Property scummvm_Debug;
|
||||
ADD_SETTING(scummvm_Debug, "ALWAYS_SEARCH_USER_PATHS", "NO");
|
||||
ADD_SETTING_QUOTE(scummvm_Debug, "USER_HEADER_SEARCH_PATHS", "$(SRCROOT) $(SRCROOT)/engines");
|
||||
ADD_SETTING(scummvm_Debug, "CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED", "YES");
|
||||
ADD_SETTING(scummvm_Debug, "CLANG_WARN_BOOL_CONVERSION", "YES");
|
||||
ADD_SETTING(scummvm_Debug, "CLANG_WARN_CONSTANT_CONVERSION", "YES");
|
||||
ADD_SETTING(scummvm_Debug, "CLANG_WARN_EMPTY_BODY", "YES");
|
||||
ADD_SETTING(scummvm_Debug, "CLANG_WARN_ENUM_CONVERSION", "YES");
|
||||
ADD_SETTING(scummvm_Debug, "CLANG_WARN_INFINITE_RECURSION", "YES");
|
||||
ADD_SETTING(scummvm_Debug, "CLANG_WARN_INT_CONVERSION", "YES");
|
||||
ADD_SETTING(scummvm_Debug, "CLANG_WARN_SUSPICIOUS_MOVE", "YES");
|
||||
ADD_SETTING(scummvm_Debug, "CLANG_WARN_UNREACHABLE_CODE", "YES");
|
||||
ADD_SETTING(scummvm_Debug, "CLANG_WARN__DUPLICATE_METHOD_MATCH", "YES");
|
||||
ADD_SETTING_QUOTE(scummvm_Debug, "CODE_SIGN_IDENTITY", "");
|
||||
ADD_SETTING_QUOTE_VAR(scummvm_Debug, "CODE_SIGN_IDENTITY[sdk=iphoneos*]", "");
|
||||
ADD_SETTING(scummvm_Debug, "ENABLE_STRICT_OBJC_MSGSEND", "YES");
|
||||
ADD_SETTING_QUOTE(scummvm_Debug, "FRAMEWORK_SEARCH_PATHS", "");
|
||||
ADD_SETTING(scummvm_Debug, "GCC_C_LANGUAGE_STANDARD", "c99");
|
||||
ADD_SETTING(scummvm_Debug, "GCC_ENABLE_CPP_EXCEPTIONS", "NO");
|
||||
ADD_SETTING(scummvm_Debug, "GCC_ENABLE_CPP_RTTI", "YES");
|
||||
ADD_SETTING(scummvm_Debug, "GCC_INPUT_FILETYPE", "automatic");
|
||||
ADD_SETTING(scummvm_Debug, "GCC_NO_COMMON_BLOCKS", "YES");
|
||||
ADD_SETTING(scummvm_Debug, "GCC_OPTIMIZATION_LEVEL", "0");
|
||||
ADD_SETTING(scummvm_Debug, "GCC_WARN_SIGN_COMPARE", "YES");
|
||||
ADD_SETTING_QUOTE(scummvm_Debug, "WARNING_CFLAGS", "-Wno-multichar -Wno-undefined-var-template");
|
||||
ADD_SETTING(scummvm_Debug, "GCC_WARN_UNDECLARED_SELECTOR", "YES");
|
||||
ADD_SETTING(scummvm_Debug, "GCC_WARN_UNINITIALIZED_AUTOS", "YES");
|
||||
ADD_SETTING(scummvm_Debug, "GCC_WARN_UNUSED_FUNCTION", "YES");
|
||||
ValueList scummvm_WarningCFlags;
|
||||
scummvm_WarningCFlags.push_back("-Wno-multichar");
|
||||
scummvm_WarningCFlags.push_back("-Wno-undefined-var-template");
|
||||
ADD_SETTING_LIST(scummvm_Debug, "WARNING_CFLAGS", scummvm_WarningCFlags, kSettingsQuoteVariable | kSettingsAsList, 5);
|
||||
ValueList scummvm_defines(_defines);
|
||||
REMOVE_DEFINE(scummvm_defines, "MACOSX");
|
||||
REMOVE_DEFINE(scummvm_defines, "IPHONE");
|
||||
|
Loading…
Reference in New Issue
Block a user