This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 2fa1d163bf9df27a89fb9d8e811f6a01ef96a854 Author: Damian Meden <[email protected]> AuthorDate: Thu May 9 09:31:21 2024 +0200 libswoc: Remove unused variables from some unit tests. (#11326) (cherry picked from commit f2b9fc4cb2b1e31beee41de70a6e55c09403151b) --- lib/swoc/unit_tests/test_TextView.cc | 1 - lib/swoc/unit_tests/test_ip.cc | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/swoc/unit_tests/test_TextView.cc b/lib/swoc/unit_tests/test_TextView.cc index 20c1797deb..14995948b3 100644 --- a/lib/swoc/unit_tests/test_TextView.cc +++ b/lib/swoc/unit_tests/test_TextView.cc @@ -400,7 +400,6 @@ TEST_CASE("TextView Affixes", "[libswoc][TextView]") { // Checking that constexpr works for this constructor as long as npos isn't used. static constexpr TextView ctv2{"http://delain.nl/albums/Interlude.html", 38}; - TextView ctv4{"http://delain.nl/albums/Interlude.html", 38}; // This doesn't compile because it causes strlen to be called which isn't constexpr compatible. // static constexpr TextView ctv3 {"http://delain.nl/albums/Interlude.html", TextView::npos}; // This works because it's not constexpr. diff --git a/lib/swoc/unit_tests/test_ip.cc b/lib/swoc/unit_tests/test_ip.cc index d240f97d26..c25b88150e 100644 --- a/lib/swoc/unit_tests/test_ip.cc +++ b/lib/swoc/unit_tests/test_ip.cc @@ -1250,7 +1250,6 @@ TEST_CASE("IPSpace Edge", "[libswoc][ipspace][edge]") { auto spot = cspace.find(a1); static_assert(std::is_same_v<Space::const_iterator, decltype(spot)>); - auto &v1 = *spot; auto const iter = cspace.find(a1); if (auto &&[r, p] = *iter; !r.empty()) {
