Cppcheck warning.
(grafted from 9cf24fc42bd2aff67a32924e48d1bd2b4d61ee2c) --HG-- branch : develop
This commit is contained in:
parent
0a66db7184
commit
7fb0ebed20
|
@ -246,7 +246,9 @@ void VAbstractApplication::WinAttachConsole()
|
||||||
auto stdout_type = GetFileType(GetStdHandle(STD_OUTPUT_HANDLE));
|
auto stdout_type = GetFileType(GetStdHandle(STD_OUTPUT_HANDLE));
|
||||||
if (stdout_type == FILE_TYPE_UNKNOWN && AttachConsole(ATTACH_PARENT_PROCESS))
|
if (stdout_type == FILE_TYPE_UNKNOWN && AttachConsole(ATTACH_PARENT_PROCESS))
|
||||||
{
|
{
|
||||||
|
// cppcheck-suppress ignoredReturnValue
|
||||||
freopen("CONOUT$", "w", stdout);
|
freopen("CONOUT$", "w", stdout);
|
||||||
|
// cppcheck-suppress ignoredReturnValue
|
||||||
freopen("CONOUT$", "w", stderr);
|
freopen("CONOUT$", "w", stderr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user