summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-01-30 13:45:29 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-01-30 13:45:45 (GMT)
commitbb352337850ac2b47819aa1e25398133e916f10f (patch)
tree9215376df2fff6ec7291d83523b852b6f460a523
parentc6312835d5813fadf7dc818878d6c824bfece44b (diff)
parent20ca9d8f6f4ddd7b56829425950332d972efef11 (diff)
downloadCMake-bb352337850ac2b47819aa1e25398133e916f10f.zip
CMake-bb352337850ac2b47819aa1e25398133e916f10f.tar.gz
CMake-bb352337850ac2b47819aa1e25398133e916f10f.tar.bz2
Merge topic 'xcode-gen-warning'
20ca9d8f cmGlobalXCodeGenerator: Avoid -Wconditional-uninitialized warning Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Sean McBride <sean@rogue-research.com> Merge-request: !1714
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx
index 9db21d8..7668fd0 100644
--- a/Source/cmGlobalXCodeGenerator.cxx
+++ b/Source/cmGlobalXCodeGenerator.cxx
@@ -176,7 +176,7 @@ cmGlobalGenerator* cmGlobalXCodeGenerator::Factory::CreateGlobalGenerator(
std::string versionFile;
{
std::string out;
- std::string::size_type pos;
+ std::string::size_type pos = 0;
if (cmSystemTools::RunSingleCommand("xcode-select --print-path", &out,
nullptr, nullptr, nullptr,
cmSystemTools::OUTPUT_NONE) &&