From ec153d1b444f3632c1f39680818ddde1573896c9 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Mon, 13 Dec 2021 13:46:42 +0100 Subject: Fixed "unused function with static linkage" warning --- zencore/thread.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'zencore/thread.cpp') diff --git a/zencore/thread.cpp b/zencore/thread.cpp index c6c2527ef..f1decf9a5 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -648,6 +648,7 @@ ProcessHandle::Wait(int TimeoutMs) ////////////////////////////////////////////////////////////////////////// +#if !ZEN_PLATFORM_WINDOWS || ZEN_WITH_TESTS static void BuildArgV(std::vector& Out, char* CommandLine) { char* Cursor = CommandLine; @@ -686,6 +687,7 @@ static void BuildArgV(std::vector& Out, char* CommandLine) ++Cursor; } } +#endif // !WINDOWS || TESTS #if ZEN_PLATFORM_WINDOWS static CreateProcResult CreateProcNormal( -- cgit v1.2.3