aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--absl/container/internal/raw_hash_set.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/container/internal/raw_hash_set.h b/absl/container/internal/raw_hash_set.h
index 0d5a5344..d4418339 100644
--- a/absl/container/internal/raw_hash_set.h
+++ b/absl/container/internal/raw_hash_set.h
@@ -2672,8 +2672,8 @@ class raw_hash_set {
const size_t cap = common().capacity();
// Use local variables because compiler complains about using functions in
// assume.
- static constexpr bool kSooEnabled = SooEnabled();
- static constexpr size_t kSooCapacity = SooCapacity();
+ ABSL_ATTRIBUTE_UNUSED static constexpr bool kSooEnabled = SooEnabled();
+ ABSL_ATTRIBUTE_UNUSED static constexpr size_t kSooCapacity = SooCapacity();
ABSL_ASSUME(!kSooEnabled || cap >= kSooCapacity);
return cap;
}