Skip to content

http: fix -Wunreachable-code in !websockets !unity builds - #19275

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:nowsbld
Closed

http: fix -Wunreachable-code in !websockets !unity builds#19275
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:nowsbld

Conversation

@vszakats

Copy link
Copy Markdown
Member

Also requires non-unity build. Possibly more non-default options are
necessary to reproduce. Seen with llvm/clang.

lib/http.c:1856:15: error: code will never be executed [-Werror,-Wunreachable-code]
 1856 |     httpreq = HTTPREQ_GET;
      |               ^~~~~~~~~~~
1 error generated.

Also requires non-unity build. Possibly more non-default options are
necessary to reproduce. Seen with llvm/clang.

```
lib/http.c:1856:15: error: code will never be executed [-Werror,-Wunreachable-code]
 1856 |     httpreq = HTTPREQ_GET;
      |               ^~~~~~~~~~~
1 error generated.
```
@vszakats vszakats closed this in 7973cb0 Oct 29, 2025
@vszakats
vszakats deleted the nowsbld branch October 29, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants