From 9c285ad0c1b4018a6d7c37acc12e5ec41e69c549 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Wed, 8 Dec 2021 16:04:45 +0100 Subject: Fixed unused return value warnings from POSIX/Linux headers --- zencore/thread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zencore/thread.cpp') diff --git a/zencore/thread.cpp b/zencore/thread.cpp index 846dcc67a..c6c2527ef 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -890,7 +890,8 @@ CreateProcResult CreateProc( { if (Options.WorkingDirectory != nullptr) { - chdir(Options.WorkingDirectory->c_str()); + int Result = chdir(Options.WorkingDirectory->c_str()); + ZEN_UNUSED(Result); } if (execv(Executable.c_str(), ArgV.data()) < 0) -- cgit v1.2.3