@@ -756,6 +756,7 @@ TEST_CASE("IP Space Int", "[libswoc][ip][ipspace]") {
756
756
// Verify that earlier ranges are still valid after the double blend.
757
757
for (auto &&[text, value] : r2) {
758
758
IPRange range{text};
759
+ static_cast <void >(value);
759
760
REQUIRE (space.end () != space.find (range.min ()));
760
761
REQUIRE (space.end () != space.find (range.max ()));
761
762
}
@@ -765,6 +766,7 @@ TEST_CASE("IP Space Int", "[libswoc][ip][ipspace]") {
765
766
// Verify all the data is in the ranges.
766
767
for (auto &&[text, value] : r2) {
767
768
IPRange range{text};
769
+ static_cast <void >(value);
768
770
REQUIRE (space.end () != space.find (range.min ()));
769
771
REQUIRE (space.end () != space.find (range.max ()));
770
772
}
@@ -777,6 +779,7 @@ TEST_CASE("IP Space Int", "[libswoc][ip][ipspace]") {
777
779
}
778
780
{
779
781
auto && [ r, p ] = *space.find (IPAddr{" 2001:4997:58:400::1E" });
782
+ static_cast <void >(p);
780
783
REQUIRE (true == r.empty ());
781
784
}
782
785
}
@@ -808,8 +811,10 @@ TEST_CASE("IPSpace bitset", "[libswoc][ipspace][bitset]") {
808
811
809
812
// Check that if an IPv4 lookup misses, it doesn't pass on to the first IPv6
810
813
auto && [ r1, p1 ] = *(space.find (IP4Addr{" 172.28.56.100" }));
814
+ static_cast <void >(p1);
811
815
REQUIRE (true == r1.empty ());
812
816
auto && [ r2, p2 ] = *(space.find (IPAddr{" 172.28.56.100" }));
817
+ static_cast <void >(p2);
813
818
REQUIRE (true == r2.empty ());
814
819
}
815
820
@@ -864,6 +869,7 @@ TEST_CASE("IPSpace docJJ", "[libswoc][ipspace][docJJ]") {
864
869
865
870
idx = 0 ;
866
871
for (auto const &[range, bits] : space) {
872
+ static_cast <void >(range);
867
873
REQUIRE (idx < results.size ());
868
874
CHECK (bits == make_bits (results[idx]));
869
875
++idx;
@@ -872,6 +878,7 @@ TEST_CASE("IPSpace docJJ", "[libswoc][ipspace][docJJ]") {
872
878
idx = results.size ();
873
879
for (auto spot = space.end (); spot != space.begin ();) {
874
880
auto const &[range, bits]{*--spot};
881
+ static_cast <void >(range);
875
882
REQUIRE (idx > 0 );
876
883
--idx;
877
884
CHECK (bits == make_bits (results[idx]));
@@ -885,6 +892,7 @@ TEST_CASE("IPSpace docJJ", "[libswoc][ipspace][docJJ]") {
885
892
for (auto spot = space.begin (); spot != space.end () ; ++spot) {
886
893
iter = spot;
887
894
std::tie (range, bits) = *iter;
895
+ static_cast <void >(range);
888
896
REQUIRE (idx < results.size ());
889
897
CHECK (bits == make_bits (results[idx]));
890
898
++idx;
@@ -1500,10 +1508,14 @@ TEST_CASE("IPSpace Uthira", "[libswoc][ipspace][uthira]") {
1500
1508
auto spot = space.begin ();
1501
1509
auto [ r1, p1 ] = *++spot;
1502
1510
auto [ r2, p2 ] = *++spot;
1511
+ static_cast <void >(p1);
1512
+ static_cast <void >(p2);
1503
1513
REQUIRE (r1.max () < r2.min ()); // This is supposed to be an invariant! Make sure.
1504
1514
auto back = space.end ();
1505
1515
auto [ br1, bp1 ] = *--back;
1506
1516
auto [ br2, bp2 ] = *--back;
1517
+ static_cast <void >(bp1);
1518
+ static_cast <void >(bp2);
1507
1519
REQUIRE (br2.max () < br1.min ()); // This is supposed to be an invariant! Make sure.
1508
1520
}
1509
1521
}
0 commit comments