We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3c2827 + 13b8306 commit d4dd7f4Copy full SHA for d4dd7f4
lldb/tools/lldb-vscode/VSCode.cpp
@@ -44,8 +44,10 @@ VSCode::VSCode()
44
// Windows opens stdout and stdin in text mode which converts \n to 13,10
45
// while the value is just 10 on Darwin/Linux. Setting the file mode to binary
46
// fixes this.
47
- assert(_setmode(fileno(stdout), _O_BINARY));
48
- assert(_setmode(fileno(stdin), _O_BINARY));
+ int result = _setmode(fileno(stdout), _O_BINARY);
+ assert(result);
49
+ result = _setmode(fileno(stdin), _O_BINARY);
50
51
#endif
52
if (log_file_path)
53
log.reset(new std::ofstream(log_file_path));
@@ -301,4 +303,3 @@ void VSCode::RunExitCommands() {
301
303
}
302
304
305
} // namespace lldb_vscode
-
0 commit comments