diff options
author | Brad King <brad.king@kitware.com> | 2022-04-06 20:02:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-04-06 20:02:05 (GMT) |
commit | 75e81733223f1c90cf48879431483d45473b9865 (patch) | |
tree | df6b7b7d648ed36748612662dbc0866eb02ee427 /Source/cmCreateTestSourceList.cxx | |
parent | 2646d5dfcfc4c2dd8a0824de2db5c6888476fcec (diff) | |
download | CMake-75e81733223f1c90cf48879431483d45473b9865.zip CMake-75e81733223f1c90cf48879431483d45473b9865.tar.gz CMake-75e81733223f1c90cf48879431483d45473b9865.tar.bz2 |
Source: Fix clang -Wunused-but-set-variable warnings
Diffstat (limited to 'Source/cmCreateTestSourceList.cxx')
-rw-r--r-- | Source/cmCreateTestSourceList.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/cmCreateTestSourceList.cxx b/Source/cmCreateTestSourceList.cxx index a2fac73..2a52d1a 100644 --- a/Source/cmCreateTestSourceList.cxx +++ b/Source/cmCreateTestSourceList.cxx @@ -102,7 +102,6 @@ bool cmCreateTestSourceList(std::vector<std::string> const& args, } std::string functionMapCode; - int numTests = 0; std::vector<std::string>::iterator j; for (i = testsBegin, j = tests_func_name.begin(); i != tests.end(); ++i, ++j) { @@ -121,7 +120,6 @@ bool cmCreateTestSourceList(std::vector<std::string> const& args, functionMapCode += *j; functionMapCode += "\n" " },\n"; - numTests++; } if (!extraInclude.empty()) { mf.AddDefinition("CMAKE_TESTDRIVER_EXTRA_INCLUDES", extraInclude); |