Skip to content

cmake: extend C89-specific warning suppressions to all llvm/clang - #21015

Closed
vszakats wants to merge 6 commits into
curl:masterfrom
vszakats:clangc89
Closed

vszakats wants to merge 6 commits into
curl:masterfrom
vszakats:clangc89

Conversation

@vszakats

@vszakats vszakats commented Mar 19, 2026 •

Copy link
Copy Markdown
Member

From Apple clang-only prior to this patch.

Silencing (seen after macos-15 runner accidentally switched to
llvm/clang by default):

/Users/runner/work/curl/curl/lib/curlx/warnless.h:64:1: error: '_Bool' is a C99 extension [-Werror,-Wc99-extensions]
   64 | bool curlx_sztouz(ssize_t sznum, size_t *puznum);
      | ^
/opt/homebrew/Cellar/llvm@18/18.1.8/lib/clang/18/include/stdbool.h:20:14: note: expanded from macro 'bool'
   20 | #define bool _Bool
      |              ^
[...]

Ref: https://github.com/curl/curl/actions/runs/23304345180/job/67774031335?pr=21014#step:11:39

Follow-up to 09c9afd #20363
Ref: actions/runner-images#13827


Tested OK with llvm@18 on macOS: https://github.com/curl/curl/actions/runs/23306142749/job/67780679891?pr=21015

@github-actions github-actions Bot added the CI Continuous Integration label Mar 19, 2026
@vszakats vszakats changed the title c89 and clang cmake: extend Apple C89 warning suppressions to llvm/clang Mar 19, 2026
@vszakats vszakats changed the title cmake: extend Apple C89 warning suppressions to llvm/clang cmake: extend C89 warning suppressions to all llvm/clang Mar 19, 2026
@vszakats vszakats removed the CI Continuous Integration label Mar 19, 2026
@vszakats vszakats changed the title cmake: extend C89 warning suppressions to all llvm/clang cmake: extend C89-specific warning suppressions to all llvm/clang Mar 19, 2026
@vszakats vszakats closed this in 43397b0 Mar 19, 2026
@vszakats
vszakats deleted the clangc89 branch March 19, 2026 16:55
vszakats added a commit to vszakats/curl that referenced this pull request Mar 21, 2026
vszakats added a commit to vszakats/curl that referenced this pull request Mar 27, 2026
vszakats added a commit to vszakats/curl that referenced this pull request Mar 27, 2026
vszakats added a commit to vszakats/curl that referenced this pull request Mar 28, 2026
vszakats added a commit to vszakats/curl that referenced this pull request Apr 1, 2026
vszakats added a commit to vszakats/curl that referenced this pull request Apr 5, 2026
vszakats added a commit to vszakats/curl that referenced this pull request Apr 6, 2026
vszakats added a commit that referenced this pull request Apr 6, 2026
Follow-up to 43397b0 #21015
Cherry-picked from #21000
vszakats added a commit that referenced this pull request Apr 8, 2026
Syncing with CMake.

Follow-up to 43397b0 #21015
Follow-up to 09c9afd #20363

Closes #21263
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
From Apple clang-only prior to this patch.

Silencing (seen after macos-15 runner accidentally switched to
llvm/clang by default):
```
/Users/runner/work/curl/curl/lib/curlx/warnless.h:64:1: error: '_Bool' is a C99 extension [-Werror,-Wc99-extensions]
   64 | bool curlx_sztouz(ssize_t sznum, size_t *puznum);
      | ^
/opt/homebrew/Cellar/llvm@18/18.1.8/lib/clang/18/include/stdbool.h:20:14: note: expanded from macro 'bool'
   20 | #define bool _Bool
      |              ^
[...]
```
Ref: https://github.com/curl/curl/actions/runs/23304345180/job/67774031335?pr=21014#step:11:39

Follow-up to 09c9afd curl#20363
Ref: actions/runner-images#13827

Closes curl#21015
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
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.

1 participant