From b359cb3917c2eb75b7a89cca88604e879e46458d Mon Sep 17 00:00:00 2001 From: Chris Hesik Date: Fri, 22 Jun 2018 17:01:24 -0400 Subject: [PATCH] Fix build warning-as-error --- Src/Common/OSUtils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Src/Common/OSUtils.cpp b/Src/Common/OSUtils.cpp index bc447c9..47717bd 100644 --- a/Src/Common/OSUtils.cpp +++ b/Src/Common/OSUtils.cpp @@ -345,7 +345,6 @@ PROCESSID OSUtils::ExecProcess(const char* szExe, bool bCreateConsole) { SP_UNREFERENCED_PARAMETER(bCreateSuspended); - SP_UNREFERENCED_PARAMETER(bCreateConsole); PROCESSID processId = fork(); if (processId == 0) @@ -354,8 +353,9 @@ PROCESSID OSUtils::ExecProcess(const char* szExe, if (!bCreateConsole) { - freopen("/dev/null", "w", stdout); - freopen("/dev/null", "w", stderr); + FILE* fFile = freopen("/dev/null", "w", stdout); + fFile = freopen("/dev/null", "w", stderr); + SP_UNREFERENCED_PARAMETER(fFile); } // change working directory