Skip to content

Commit d46ed2a

Browse files
authored
GEODE-10131: Remove set but unused variables (#947)
* Remove set but unused variables - On AppleClang 13.1.6.13160021, the warning -Wunused-but-set-variable is appears as an error. This allows compilation on AppleClang on MacOS 12.3 Authored-by: M. Oleske <michael@oleske.engineer>
1 parent 0cbafc6 commit d46ed2a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

cppcache/src/ClientMetadata.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@ ClientMetadata::ClientMetadata(
5050
"%zu ",
5151
totalNumBuckets, fpaSet->size());
5252
if (!fpaSet->empty()) {
53-
int totalFPABuckets = 0;
5453
for (int i = 0; i < static_cast<int>(fpaSet->size()); i++) {
5554
std::vector<int> attList;
56-
totalFPABuckets += fpaSet->at(i)->getNumBuckets();
5755
attList.push_back(fpaSet->at(i)->getNumBuckets());
5856
attList.push_back(fpaSet->at(i)->getStartingBucketID());
5957
m_fpaMap[fpaSet->at(i)->getPartitionName()] = attList;

0 commit comments

Comments
 (0)