From 92e9bb21758f73266e1f805e366ce90d2cbd688d Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 14 Jan 2016 14:42:11 -0500 Subject: [PATCH] cmcmd.cxx: Remove unused code in __run_iwyu implementation Do not try to capture stderr with OUTPUT_PASSTHROUGH. RunSingleCommand will never populate it. --- Source/cmcmd.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index 7da81bbd1..8dd902bea 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -361,11 +361,10 @@ int cmcmd::ExecuteCMakeCommand(std::vector& 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;