]> git.ipfire.org Git - thirdparty/curl.git/commit
hostip: fix unreachable code in rare build configuration
authorViktor Szakats <commit@vsz.me>
Sun, 18 Jan 2026 06:19:47 +0000 (07:19 +0100)
committerViktor Szakats <commit@vsz.me>
Sun, 18 Jan 2026 11:45:39 +0000 (12:45 +0100)
commitaef128ef50a0689d414103e8d6c337ccb9d9f2cd
tree58a3cd384b547f9345d41c0b05e9c745b79282b8
parentba7e51af2d2cd707c986649d51510b19d4418344
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
lib/hostip.c