diff options
author | Brad King <brad.king@kitware.com> | 2016-01-14 19:42:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-01-19 20:46:15 (GMT) |
commit | 92e9bb21758f73266e1f805e366ce90d2cbd688d (patch) | |
tree | e59c7ef4dabf181b7603ee400bf4e2893902a943 /Source/cmcmd.cxx | |
parent | fb1526f57fe4720aff596b312e6a767502b86e13 (diff) | |
download | CMake-92e9bb21758f73266e1f805e366ce90d2cbd688d.zip CMake-92e9bb21758f73266e1f805e366ce90d2cbd688d.tar.gz CMake-92e9bb21758f73266e1f805e366ce90d2cbd688d.tar.bz2 |
cmcmd.cxx: Remove unused code in __run_iwyu implementation
Do not try to capture stderr with OUTPUT_PASSTHROUGH. RunSingleCommand
will never populate it.
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index 7da81bb..8dd902b 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -361,11 +361,10 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string>& args) } // Now run the real compiler command and return its result value. - if(!cmSystemTools::RunSingleCommand(orig_cmd, 0, &stdErr, &ret, 0, + if(!cmSystemTools::RunSingleCommand(orig_cmd, 0, 0, &ret, 0, cmSystemTools::OUTPUT_PASSTHROUGH)) { - std::cerr << "Error running '" << orig_cmd[0] << "': " - << stdErr << "\n"; + std::cerr << "Error running '" << orig_cmd[0] << "'\n"; return 1; } return ret; |