summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-11-27 18:19:45 (GMT)
committerBrad King <brad.king@kitware.com>2018-11-27 18:20:34 (GMT)
commitcb6229b8b8aabfc9700dae88485c89738af928bc (patch)
tree986b8a6d4931d5926d91fadcf1d26fca78193297 /Source/QtDialog
parentf49efe283ed005aac642f5af58ea971d468de88c (diff)
downloadCMake-cb6229b8b8aabfc9700dae88485c89738af928bc.zip
CMake-cb6229b8b8aabfc9700dae88485c89738af928bc.tar.gz
CMake-cb6229b8b8aabfc9700dae88485c89738af928bc.tar.bz2
clang-tidy: fix warnings in macOS-only code
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/CMakeSetup.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx
index 7b980a0..be4e003 100644
--- a/Source/QtDialog/CMakeSetup.cxx
+++ b/Source/QtDialog/CMakeSetup.cxx
@@ -216,12 +216,11 @@ static bool cmOSXInstall(std::string const& dir, std::string const& tool)
if (symlink(tool.c_str(), link.c_str()) == 0) {
std::cerr << "Linked: '" << link << "' -> '" << tool << "'\n";
return true;
- } else {
- int err = errno;
- std::cerr << "Failed: '" << link << "' -> '" << tool
- << "': " << strerror(err) << "\n";
- return false;
}
+ int err = errno;
+ std::cerr << "Failed: '" << link << "' -> '" << tool
+ << "': " << strerror(err) << "\n";
+ return false;
}
static int cmOSXInstall(std::string dir)
{