From 5271e83824771a7ab21301ac6c72c7a8d75a5647 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sun, 17 Mar 2024 19:02:46 -0500 Subject: [PATCH] Common: Don't forceinline vararg functions No compiler actually inlines them, and GCC issues an error saying that it can't force inline vararg functions --- common/Console.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/Console.h b/common/Console.h index 78184d725b..2e3b758be8 100644 --- a/common/Console.h +++ b/common/Console.h @@ -132,10 +132,10 @@ struct ConsoleLogWriter } while (0) // clang-format off - __fi static void Error(const char* format, ...) { MAKE_PRINTF_CONSOLE_WRITER(Color_StrongRed); } - __fi static void Warning(const char* format, ...) { MAKE_PRINTF_CONSOLE_WRITER(Color_StrongOrange); } - __fi static void WriteLn(const char* format, ...) { MAKE_PRINTF_CONSOLE_WRITER(Color_Default); } - __fi static void WriteLn(ConsoleColors color, const char* format, ...) { MAKE_PRINTF_CONSOLE_WRITER(color); } + static void Error(const char* format, ...) { MAKE_PRINTF_CONSOLE_WRITER(Color_StrongRed); } + static void Warning(const char* format, ...) { MAKE_PRINTF_CONSOLE_WRITER(Color_StrongOrange); } + static void WriteLn(const char* format, ...) { MAKE_PRINTF_CONSOLE_WRITER(Color_Default); } + static void WriteLn(ConsoleColors color, const char* format, ...) { MAKE_PRINTF_CONSOLE_WRITER(color); } // clang-format on #undef MAKE_PRINTF_CONSOLE_WRITER