Change #255502
| Category | curl |
| Changed by | Viktor Szakats <commit@vsz.me> |
| Changed at | Sun 18 Jan 2026 12:45:39 |
| Repository | https://github.com/curl/curl.git |
| Project | curl |
| Branch | master |
| Revision | aef128ef50a0689d414103e8d6c337ccb9d9f2cd |
Comments
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
Changed files
- lib/hostip.c