diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index f133e75d..10a316bf 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -164,4 +164,4 @@ GCC_WARN_UNUSED_PARAMETER = YES GCC_WARN_UNUSED_VARIABLE = YES // Turn on all warnings, then disable a few which are almost impossible to avoid -WARNING_CFLAGS = -Wall -Weverything -Wno-unused-macros -Wno-gnu-statement-expression -Wno-auto-import -Wno-gnu-zero-variadic-macro-arguments -Wno-format-non-iso -Wno-direct-ivar-access -Wno-declaration-after-statement -Wno-gnu-conditional-omitted-operand -Wno-switch-default -Wno-missing-include-dirs -Wno-pre-c11-compat -Werror=undef +WARNING_CFLAGS = -Wall -Weverything -Wno-unused-macros -Wno-gnu-statement-expression -Wno-auto-import -Wno-gnu-zero-variadic-macro-arguments -Wno-format-non-iso -Wno-direct-ivar-access -Wno-declaration-after-statement -Wno-gnu-conditional-omitted-operand -Wno-switch-default -Wno-missing-include-dirs -Werror=undef diff --git a/Sparkle/SULog.m b/Sparkle/SULog.m index 5c7f7765..21ab5ecb 100644 --- a/Sparkle/SULog.m +++ b/Sparkle/SULog.m @@ -32,6 +32,10 @@ void SULog(SULogLevel level, NSString *format, ...) // Note we don't take advantage of info like the source line number because we wrap this macro inside our own function // And we don't really leverage of os_log's deferred formatting processing because we format the string before passing it in switch (level) { +#pragma clang diagnostic push +#if __has_warning("-Wpre-c11-compat") +#pragma clang diagnostic ignored "-Wpre-c11-compat" +#endif case SULogLevelDefault: // See docs for OS_LOG_TYPE_DEFAULT // By default, OS_LOG_TYPE_DEFAULT seems to be more noticeable than OS_LOG_TYPE_INFO @@ -41,5 +45,6 @@ void SULog(SULogLevel level, NSString *format, ...) // See docs for OS_LOG_TYPE_ERROR os_log_error(logger, "%{public}@", logMessage); break; +#pragma clang diagnostic pop } }