cf-https-connect: silence -Wimplicit-int-enum-cast with HTTPS-RR + clang 21#21057
Closed
vszakats wants to merge 3 commits intocurl:masterfrom
Closed
cf-https-connect: silence -Wimplicit-int-enum-cast with HTTPS-RR + clang 21#21057vszakats wants to merge 3 commits intocurl:masterfrom
-Wimplicit-int-enum-cast with HTTPS-RR + clang 21#21057vszakats wants to merge 3 commits intocurl:masterfrom
Conversation
Fixing (seen in HTTPS-RR builds with clang 21+ in curl-for-win dev):
```
In file included from _a64-linux-gnu-bld/lib/CMakeFiles/libcurl_object.dir/Unity/unity_0_c.c:34:
lib/cf-https-connect.c:681:28: error: implicit conversion from 'unsigned char' to enumeration type 'enum alpnid' is invalid in C++ [-Werror,-Wimplicit-int-enum-cast]
681 | enum alpnid alpn = rr->alpns[i];
| ~~~~ ^~~~~~~~~~~~
```
Follow-up to 59405ff curl#20990
Follow-up to 0d4fdbf curl#16054
Cherry-picked from curl#21032
This reverts commit a2e77ec.
-Wimplicit-int-enum-cast with HTTPS-RR + clang 21+-Wimplicit-int-enum-cast with HTTPS-RR + clang 21
3 tasks
vszakats
added a commit
to vszakats/curl
that referenced
this pull request
Mar 31, 2026
…clang 21 (reapply) Re-apply: e09a7b8 curl#21057 Follow-up to 335dc0e curl#21027
vszakats
added a commit
to vszakats/curl
that referenced
this pull request
Mar 31, 2026
…clang 21 (reapply) Re-apply: e09a7b8 curl#21057 Follow-up to 335dc0e curl#21027
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixing (seen in curl-for-win dev branch):
Ref: #21032
Confirmed working: https://github.com/curl/curl-for-win/actions/runs/23389993294