Skip to content

build: compiler warning silencing tidy-ups - #20908

Closed
vszakats wants to merge 16 commits into
curl:masterfrom
vszakats:tfmtnonlit
Closed

vszakats wants to merge 16 commits into
curl:masterfrom
vszakats:tfmtnonlit

Conversation

@vszakats

@vszakats vszakats commented Mar 12, 2026 •

Copy link
Copy Markdown
Member

@vszakats
vszakats marked this pull request as draft March 12, 2026 13:59
@testclutch

This comment was marked as outdated.

@vszakats vszakats changed the title [TEST] tool_writeout: warning suppression scope src: warning silencing tidy-ups Mar 12, 2026
@github-actions github-actions Bot added the tests label Mar 12, 2026
@vszakats vszakats changed the title src: warning silencing tidy-ups build: compiler warning silencing tidy-ups Mar 12, 2026
Fallouts:
- Windows / dl-mingw, CM 6.4.0-i686 schannel !unity (pull_request)

D:/a/curl/curl/tests/unit/unit1652.c:112:3: error: reading through null pointer (argument 3) [-Werror=format=]
   Curl_infof(easy, "%s", (char *)NULL);
   ^~~~~~~~~~
https://github.com/curl/curl/actions/runs/23011479533/job/66822966645?pr=20908

- Windows / dl-mingw, CM 7.3.0-x86_64 schannel mbedtls U (pull_request)

D:/a/curl/curl/tests/unit/unit1652.c:112:3: error: reading through null pointer (argument 3) [-Werror=format=]
   Curl_infof(easy, "%s", (char *)NULL);
   ^~~~~~~~~~
https://github.com/curl/curl/actions/runs/23011479533/job/66822966647?pr=20908

- old linux

/__w/curl/curl/tests/unit/unit1652.c:112:3: error: reading through null pointer (argument 3) [-Werror=format=]
   Curl_infof(easy, "%s", (char *)NULL);
   ^~~~~~~~~~
https://github.com/curl/curl/actions/runs/23011479414/job/66822941242?pr=20908
@github-actions github-actions Bot added the CI Continuous Integration label Mar 12, 2026
@vszakats
vszakats marked this pull request as ready for review March 12, 2026 17:29
@vszakats vszakats closed this in 210d8ec Mar 12, 2026
@vszakats
vszakats deleted the tfmtnonlit branch March 12, 2026 18:03
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
- tool_getparam: revert an unnecessary/no-op C89 warning silencer.
  Follow-up to 09c9afd curl#20363

- tool_writeout: add comment saying silencing is a no-op for llvm/clang.
  For `strftime()` it is a GCC-specific, as of llvm/clang v22.1.0.
  Follow-up to f07a98a curl#20366

- unit1652: drop always-false `!defined(__clang__)` guard.
  Pointed-out-by: Orgad Shaneh
  Ref: curl#20902
  Follow-up to 7e814c8 curl#16062

- unit1652: document that `-Wformat` is necessary for GCC v5 to v8.
  Follow-up to 71cf0d1 curl#14772

Closes curl#20908
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration cmdline tool tests

Development

Successfully merging this pull request may close these issues.

2 participants