mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:31:42 +03:00
hostip: fix unreachable code in rare build configuration
with cmake options:
```
-DCMAKE_UNITY_BUILD=OFF -DCURL_DISABLE_HTTP=ON -DENABLE_THREADED_RESOLVER=OFF
```
Fixing (seen with Apple clang 17):
```
lib/hostip.c:939:16: error: code will never be executed [-Werror,-Wunreachable-code]
940 | *entry = dns;
| ^~~
```
Closes #20344
This commit is contained in:
parent
ba7e51af2d
commit
aef128ef50
1 changed files with 2 additions and 0 deletions
|
|
@ -935,10 +935,12 @@ out:
|
|||
return CURLE_OK;
|
||||
}
|
||||
else if(respwait) {
|
||||
#ifdef USE_CURL_ASYNC
|
||||
if(!Curl_resolv_check(data, &dns)) {
|
||||
*entry = dns;
|
||||
return dns ? CURLE_OK : CURLE_AGAIN;
|
||||
}
|
||||
#endif
|
||||
result = CURLE_COULDNT_RESOLVE_HOST;
|
||||
}
|
||||
error:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue