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 e0e56e9ae4 #21550
Follow-up to 5fa5cb3825 #20593

Closes #21554
This commit is contained in:
Viktor Szakats 2026-05-12 02:26:05 +02:00
parent a15483c4ca
commit 47f411c6d8
No known key found for this signature in database
16 changed files with 66 additions and 33 deletions

View file

@ -98,8 +98,12 @@ const char * const Curl_month[] = {
#ifndef CURL_DISABLE_PARSEDATE
#if SIZEOF_TIME_T < 5
#define PARSEDATE_LATER 1
#endif
#if SIZEOF_TIME_T < 5 || defined(HAVE_TIME_T_UNSIGNED)
#define PARSEDATE_SOONER 2
#endif
static const char * const weekday[] = {
"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"