Remove or annotate unused libc++ struct variables

PiperOrigin-RevId: 1021072997
diff --git a/absl/container/inlined_vector_test.cc b/absl/container/inlined_vector_test.cc
index 8bed847..ce5a023 100644
--- a/absl/container/inlined_vector_test.cc
+++ b/absl/container/inlined_vector_test.cc
@@ -1020,6 +1020,7 @@
 
 TEST(StringVec, SelfMove) {
   const std::string s = "A quite long string to ensure heap.";
+  std::vector<std::string> copy;
   for (int len = 0; len < 20; len++) {
     SCOPED_TRACE(len);
     absl::InlinedVector<std::string, 8> v;
@@ -1032,7 +1033,7 @@
     // Ensure that the inlined vector is still in a valid state by copying it.
     // We don't expect specific contents since a self-move results in an
     // unspecified valid state.
-    std::vector<std::string> copy(v.begin(), v.end());
+    copy.assign(v.begin(), v.end());
   }
 }
 
diff --git a/absl/container/internal/raw_hash_set_test.cc b/absl/container/internal/raw_hash_set_test.cc
index 2fd8a12..a62adf5 100644
--- a/absl/container/internal/raw_hash_set_test.cc
+++ b/absl/container/internal/raw_hash_set_test.cc
@@ -4318,7 +4318,7 @@
   }
   std::vector<const HashtablezInfo*> infos =
       SampleSooMutation([](SooInt32Table& t) {
-        for (int i = 0; i < 10; ++i) {
+        for ([[maybe_unused]] int i = 0; i < 10; ++i) {
           t.insert(1);
           t.erase(1);
         }
@@ -4371,7 +4371,7 @@
     CHECK_LT(sizeof(void*), 8) << "missing SOO coverage";
     GTEST_SKIP() << "not SOO on this platform";
   }
-  std::vector<const HashtablezInfo*> infos =
+  [[maybe_unused]] std::vector<const HashtablezInfo*> infos =
       SampleSooMutation([](SooInt32Table& t) {
         t.insert(1);
         t.erase(1);
@@ -4391,7 +4391,7 @@
     CHECK_LT(sizeof(void*), 8) << "missing SOO coverage";
     GTEST_SKIP() << "not SOO on this platform";
   }
-  std::vector<const HashtablezInfo*> infos =
+  [[maybe_unused]] std::vector<const HashtablezInfo*> infos =
       SampleSooMutation([](SooInt32Table& t) {
         t.insert(1);
         t.erase(1);
diff --git a/absl/container/node_hash_map_test.cc b/absl/container/node_hash_map_test.cc
index 63a0936..ee7af0a 100644
--- a/absl/container/node_hash_map_test.cc
+++ b/absl/container/node_hash_map_test.cc
@@ -78,7 +78,6 @@
   ASSERT_EQ(0, t.num_moves());
   ASSERT_EQ(1, t.num_copies());
 
-  const std::string ca("a");
   m.emplace(a, t);
   ASSERT_EQ(0, t.num_moves());
   ASSERT_EQ(1, t.num_copies());