You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bn...@apache.org on 2024/03/04 16:42:31 UTC
(trafficserver) branch master updated: test_ip: add iterator temporary for gcc release builds (#11124)
This is an automated email from the ASF dual-hosted git repository.
bnolsen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 7f32f4eba4 test_ip: add iterator temporary for gcc release builds (#11124)
7f32f4eba4 is described below
commit 7f32f4eba4c023971bbdd3e6d448480d3922a5d0
Author: Brian Olsen <br...@comcast.com>
AuthorDate: Mon Mar 4 09:42:25 2024 -0700
test_ip: add iterator temporary for gcc release builds (#11124)
---
lib/swoc/unit_tests/test_ip.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/swoc/unit_tests/test_ip.cc b/lib/swoc/unit_tests/test_ip.cc
index bb7eadfc31..178e85b72a 100644
--- a/lib/swoc/unit_tests/test_ip.cc
+++ b/lib/swoc/unit_tests/test_ip.cc
@@ -1253,7 +1253,8 @@ TEST_CASE("IPSpace Edge", "[libswoc][ipspace][edge]") {
auto &v1 = *spot;
auto &p1 = get<1>(v1);
- if (auto &&[r, p] = *(cspace.find(a1)); !r.empty()) {
+ auto const iter = cspace.find(a1);
+ if (auto &&[r, p] = *iter; !r.empty()) {
static_assert(std::is_same_v<swoc::IPRangeView const &, decltype(r)>);
IPRange rr = r;
swoc::IPRangeView rvv{r};