From 390d5d2fb4c0eaef031e502773a0fc1e36a6ce1c Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 10 Aug 2026 14:51:33 +0200 Subject: [PATCH] OfflineCompiler: Avoid unused function in win32 builds Fixes -Wunused-function warning. --- Source/Tools/FEXOfflineCompiler/Main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Tools/FEXOfflineCompiler/Main.cpp b/Source/Tools/FEXOfflineCompiler/Main.cpp index af3bb7723..3f8d7414b 100644 --- a/Source/Tools/FEXOfflineCompiler/Main.cpp +++ b/Source/Tools/FEXOfflineCompiler/Main.cpp @@ -136,6 +136,7 @@ public: #endif }; +#ifndef _WIN32 static void MsgHandler(LogMan::DebugLevels Level, const char* Message) { fmt::print("[{}] {}\n", LogMan::DebugLevelStr(Level), Message); } @@ -143,6 +144,7 @@ static void MsgHandler(LogMan::DebugLevels Level, const char* Message) { static void AssertHandler(const char* Message) { fmt::print("[A] {}\n", Message); } +#endif namespace FEXCore { inline bool operator<(const ExecutableFileInfo& a, const ExecutableFileInfo& b) noexcept {