Repository navigation
Conversation
```
lib/vtls/schannel.c: In function 'schannel_connect_step1':
lib/vtls/schannel.c:938:5: error: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
*(unsigned int *)(void *)&alpn_buffer[cur] =
^
```
Ref: https://github.com/curl/curl/actions/runs/36553564862/job/109357301399?pr=23161#step:11:177
Cherry-picked from curl#23161
This reverts commit df850f9.
vszakats
marked this pull request as draft
September 29, 2026 10:26
This reverts commit 3ee3fed. Confirmed in `-DCMAKE_BUILD_TYPE=Release` builds: https://github.com/curl/curl/actions/runs/36555568944/job/109363820532?pr=23163 https://github.com/curl/curl/actions/runs/36555568944/job/109363820568?pr=23163
-Wstrict-aliasing
-Wstrict-aliasing-Wstrict-aliasing in ALPN code
vszakats
marked this pull request as ready for review
September 29, 2026 10:31
This reverts commit 53c8cbf.
vszakats
added a commit
that referenced
this pull request
Sep 29, 2026
As the `mingw32` environment is deprecated in MSYS2. Reduce it to a single, standalone job, still using a couple of `mingw32` packages, till we can. Changes: drop building: debug, unicode, unity in 32-bit mingw-w64. Dropping 1 job taking ~2.5 minutes, adding ~half minute to remaining one. Saving 2 minutes overall. It also simplifies things by avoiding errors due to packages missing from `mingw32`, but available in first tier envs. E.g. when adding `libssh` or `wolfssl` to the per-workflow `install:` list. I expect this list to gradually grow. Note, `mingw32` packages are still used in the remaining 32-bit job. Fixing one instance of: ``` Warning: [msystem-mingw32] MINGW32 is deprecated because 32-bit environments are being phased out. There is no direct replacement. To acknowledge and suppress this warning, add 'msystem-mingw32' to 'suppress-deprecation-warnings'. ``` Ref: https://github.com/curl/curl/actions/runs/36551828804/job/109351622601?pr=23155#step:4:27 Follow-up to ea21cab #23163 Follow-up to 14037d1 #23154 Closes #23161
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.

Seen in 32-bit
-DCMAKE_BUILD_TYPE=Releasebuilds, with GCC 6.4.0.Reproduced by switching the dl-mingw 6.4.0 job to Release (from Debug).
Fixing:
Ref: https://github.com/curl/curl/actions/runs/36553564862/job/109357301399?pr=23161#step:11:177
Cherry-picked from #23161
Reproduced by switching the dl-mingw 6.4.0 job to Release (from Debug).
Confirmed this patch fixes the warning while keeping rest of CI green:
https://github.com/curl/curl/actions/runs/36555911927/job/109372993433