Repository navigation
Conversation
vszakats
marked this pull request as draft
February 26, 2025 00:34
This comment was marked as duplicate.
This comment was marked as duplicate.
8 tasks done
Member
Author
|
After silencing the bogus WinCE warnings, the next question is why does autotools want to detect C11 and C99 in these builds, and not in others: vs. a normal mingw builds: |
vszakats
marked this pull request as ready for review
February 26, 2025 03:04
Member
There's probably something legacy in the compiler that it detects (or, can't detect..) and so it needs to interrogate more than usual. I wouldn't sweat it. |
pps83
pushed a commit
to pps83/curl
that referenced
this pull request
Apr 26, 2025
`./configure` mingw32ce builds enable C99 mode automatically, that triggers compiler warnings in gcc 4.4.0. We initially worked it around in CI by suppressing the detection of C99 with `ac_cv_prog_cc_c99=no`. Replace it with automatically silencing the bogus warnings in C99 mode, for all build systems: ``` lib/ftp.c: In function 'Curl_GetFTPResponse': lib/ftp.c:726: error: format '%zd' expects type 'signed size_t', but argument 4 has type 'ssize_t' lib/ws.c: In function 'ws_dec_pass_payload': lib/ws.c:304: error: format '%zd' expects type 'signed size_t', but argument 3 has type 'ssize_t' lib/ws.c: In function 'ws_enc_write_head': lib/ws.c:581: error: format '%zd' expects type 'signed size_t', but argument 3 has type 'long int' lib/vtls/schannel.c: In function 'schannel_connect_step1': lib/vtls/schannel.c:1122: error: format '%zd' expects type 'signed size_t', but argument 3 has type 'ssize_t' lib/vtls/schannel.c: In function 'schannel_connect_step2': lib/vtls/schannel.c:1311: error: format '%zd' expects type 'signed size_t', but argument 3 has type 'ssize_t' lib/vtls/schannel.c: In function 'schannel_send': lib/vtls/schannel.c:1793: error: format '%zd' expects type 'signed size_t', but argument 3 has type 'ssize_t' lib/vtls/schannel.c:1810: error: format '%zd' expects type 'signed size_t', but argument 3 has type 'ssize_t' lib/vtls/schannel.c: In function 'schannel_shutdown': lib/vtls/schannel.c:2286: error: format '%zd' expects type 'signed size_t', but argument 4 has type 'ssize_t' lib/vtls/vtls.c: In function 'ssl_cf_recv': lib/vtls/vtls.c:1422: error: format '%zd' expects type 'signed size_t', but argument 5 has type 'ssize_t' ``` Ref: https://github.com/curl/curl/actions/runs/13533841306/job/37821720902?pr=16492#step:9:20 Also: simplify Windows CE job configuration in GHA/windows. Follow-up to 2a292c3 curl#15975 Closes curl#16492
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.
./configuremingw32ce builds enable C99 mode automatically, thattriggers compiler warnings in gcc 4.4.0. We initially worked it around
in CI by suppressing the detection of C99 with
ac_cv_prog_cc_c99=no.Replace it with automatically silencing the bogus warnings in C99 mode,
for all build systems:
Ref: https://github.com/curl/curl/actions/runs/13533841306/job/37821720902?pr=16492#step:9:20
Also: simplify Windows CE job configuration in GHA/windows.
Follow-up to 2a292c3 #15975