This is an automated email from the ASF dual-hosted git repository.
moleske pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git
The following commit(s) were added to refs/heads/develop by this push:
new d46ed2a6c GEODE-10131: Remove set but unused variables (#947)
d46ed2a6c is described below
commit d46ed2a6c8b9148322a992a184807dac231d30a1
Author: M. Oleske <[email protected]>
AuthorDate: Sat Apr 9 08:42:17 2022 -0700
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 <[email protected]>
---
cppcache/src/ClientMetadata.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/cppcache/src/ClientMetadata.cpp b/cppcache/src/ClientMetadata.cpp
index dd090d686..881ea4690 100644
--- a/cppcache/src/ClientMetadata.cpp
+++ b/cppcache/src/ClientMetadata.cpp
@@ -50,10 +50,8 @@ ClientMetadata::ClientMetadata(
"%zu ",
totalNumBuckets, fpaSet->size());
if (!fpaSet->empty()) {
- int totalFPABuckets = 0;
for (int i = 0; i < static_cast<int>(fpaSet->size()); i++) {
std::vector<int> attList;
- totalFPABuckets += fpaSet->at(i)->getNumBuckets();
attList.push_back(fpaSet->at(i)->getNumBuckets());
attList.push_back(fpaSet->at(i)->getStartingBucketID());
m_fpaMap[fpaSet->at(i)->getPartitionName()] = attList;