]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
multi: fix unreachable code compiler warning
authorViktor Szakats <commit@vsz.me>
Sat, 28 Feb 2026 21:43:19 +0000 (22:43 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 2 Mar 2026 15:01:21 +0000 (16:01 +0100)
```
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

index 5642978842d2a7fa7b7f2ee552b310a2935098e0..e6a952334bb455d37c0825164deb4a1f50208a3c 100644 (file)
@@ -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;