Compare commits

...
6 Commits
Author SHA1 Message Date
Zorg b9a416d700 Try only outputting first 4096 bytes from analyze output 2025-05-01 10:20:56 -04:00
Zorg b2480ebae5 Merge branch '2.x' into no-pre-c11-compat 2025-05-01 09:44:25 -04:00
Zorg 2e9327de8f Revert "Revert "Add -Wno-pre-c11-compat to compiler warnings""
This reverts commit 9d3474411e.
2025-05-01 09:44:09 -04:00
Zorg 9d3474411e Revert "Add -Wno-pre-c11-compat to compiler warnings"
This reverts commit 4461576f61.

Testing if CI is still happy.
2025-05-01 07:59:31 -04:00
Zorg d66643d429 Merge branch '2.x' into no-pre-c11-compat 2025-04-30 21:33:24 -04:00
Zorg 4461576f61 Add -Wno-pre-c11-compat to compiler warnings 2025-04-30 17:40:23 -04:00
3 changed files with 2 additions and 7 deletions

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ jobs:
run: |
{
echo 'content<<EOF'
cat analyze_output.txt
head -c 4096 analyze_output.txt
echo 'EOF'
} >> $GITHUB_OUTPUT
+1 -1
View File
@@ -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 -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 -Wno-pre-c11-compat -Werror=undef
-5
View File
@@ -32,10 +32,6 @@ 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
@@ -45,6 +41,5 @@ void SULog(SULogLevel level, NSString *format, ...)
// See docs for OS_LOG_TYPE_ERROR
os_log_error(logger, "%{public}@", logMessage);
break;
#pragma clang diagnostic pop
}
}