From 7fb0ebed20bbd9d29a2d2c7f808d2a5093f10759 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 10 Dec 2017 13:29:17 +0200 Subject: [PATCH] Cppcheck warning. (grafted from 9cf24fc42bd2aff67a32924e48d1bd2b4d61ee2c) --HG-- branch : develop --- src/libs/vmisc/vabstractapplication.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/vmisc/vabstractapplication.cpp b/src/libs/vmisc/vabstractapplication.cpp index 8ca124e7d..1a1a52516 100644 --- a/src/libs/vmisc/vabstractapplication.cpp +++ b/src/libs/vmisc/vabstractapplication.cpp @@ -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); } }