Cppcheck warning.

(grafted from 9cf24fc42bd2aff67a32924e48d1bd2b4d61ee2c)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-12-10 13:29:17 +02:00
parent 0a66db7184
commit 7fb0ebed20

View File

@ -246,7 +246,9 @@ void VAbstractApplication::WinAttachConsole()
auto stdout_type = GetFileType(GetStdHandle(STD_OUTPUT_HANDLE));
if (stdout_type == FILE_TYPE_UNKNOWN && AttachConsole(ATTACH_PARENT_PROCESS))
{
// cppcheck-suppress ignoredReturnValue
freopen("CONOUT$", "w", stdout);
// cppcheck-suppress ignoredReturnValue
freopen("CONOUT$", "w", stderr);
}
}