mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
cmLocalGenerator: Drop unused initializer in AddUnityBuild
Fix a warning from clang-scanbuild:
warning: Value stored to 'chunk' during its initialization is never read
for (size_t itemsLeft = filtered_sources.size(), chunk = batchSize,
^~~~~ ~~~~~~~~~
Simply remove the initializer.
This commit is contained in:
@@ -2453,8 +2453,7 @@ void cmLocalGenerator::AddUnityBuild(cmGeneratorTarget* target)
|
||||
batchSize = filtered_sources.size();
|
||||
}
|
||||
|
||||
for (size_t itemsLeft = filtered_sources.size(), chunk = batchSize,
|
||||
batch = 0;
|
||||
for (size_t itemsLeft = filtered_sources.size(), chunk, batch = 0;
|
||||
itemsLeft > 0; itemsLeft -= chunk, ++batch) {
|
||||
|
||||
chunk = std::min(itemsLeft, batchSize);
|
||||
|
||||
Reference in New Issue
Block a user