]> git.ipfire.org Git - thirdparty/curl.git/commit
GHA: enable `-Wunused-macros` in clang-tidy jobs
authorViktor Szakats <commit@vsz.me>
Tue, 12 May 2026 00:26:05 +0000 (02:26 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 15 May 2026 23:17:41 +0000 (01:17 +0200)
commit47f411c6d840dcee63a2ac9cbc0bfbea522ac5cd
treecb1f4839be2dc0fc728c8fd55f92798da5a23fd0
parenta15483c4caa746a265749071c0532fdf7f53e252
GHA: enable `-Wunused-macros` in clang-tidy jobs

Also fix fallouts found.

Windows clang-tidy CI job is a little pickier than I'd prefer due to the
`_CURL_TESTS_CONCAT=ON` option used there, and all macros considered
local, thus checked by the compiler. Upside: it revealed macro usage
dynamics in tests. If too annoying, `first.h` may be opted-out from the
concat logic. Some macros may also be deleted instead of `#if 0`-ing.

Follow-up to e0e56e9ae434552bd6ac5570ed91483188d75788 #21550
Follow-up to 5fa5cb382560316a55f0954f1e8cebdbd6568cfb #20593

Closes #21554
16 files changed:
.github/workflows/linux.yml
.github/workflows/macos.yml
.github/workflows/windows.yml
lib/parsedate.c
tests/libtest/first.h
tests/libtest/lib1912.c
tests/libtest/lib2301.c
tests/libtest/lib2302.c
tests/libtest/lib2304.c
tests/libtest/lib2700.c
tests/libtest/lib518.c
tests/libtest/lib537.c
tests/server/dnsd.c
tests/unit/unit1307.c
tests/unit/unit1666.c
tests/unit/unit1667.c