From b83ade783d8dca498ababcac9b749e35c1711037 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 28 Feb 2026 22:43:19 +0100 Subject: [PATCH] multi: fix unreachable code compiler warning ``` lib/multi.c:305:5: error: code will never be executed [clang-diagnostic-unreachable-code] 305 | goto error; | ^~~~~~~~~~ ``` Cherry-picked from #20774 Closes #20788 --- lib/multi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/multi.c b/lib/multi.c index 5642978842..e6a952334b 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -301,8 +301,10 @@ struct Curl_multi *Curl_multi_handle(uint32_t xfer_table_size, } #endif +#ifdef USE_IPV6 if(Curl_probeipv6(multi)) goto error; +#endif return multi;