curl-curl/include/curl
Viktor Szakats daa6b27b4d
include: avoid recursive macros
To fix potential `-Wdisabled-macro-expansion` warnings when using these
macros within other macros. Fixing for example:
```
lib/doh.c:328:3: error: disabled expansion of recursive macro [clang-diagnostic-disabled-macro-expansion,-warnings-as-errors]
  328 |   ERROR_CHECK_SETOPT(CURLOPT_URL, url);
      |   ^
lib/doh.c:271:14: note: expanded from macro 'ERROR_CHECK_SETOPT'
  271 |     result = curl_easy_setopt((CURL *)doh, x, y);       \
      |              ^
include/curl/curl.h:3332:44: note: expanded from macro 'curl_easy_setopt'
 3332 | #define curl_easy_setopt(handle,opt,param) curl_easy_setopt(handle,opt,param)
      |                                            ^
[...]
```

Also update comments on why curl continues to disable
`-Wdisabled-macro-expansion` and `-Wused-but-marked-unused` warnings.

Follow-up to 92f215fea1 #18477

Closes #20597
2026-02-15 22:54:32 +01:00
..
curl.h include: avoid recursive macros 2026-02-15 22:54:32 +01:00
curlver.h RELEASE-NOTES: synced 2026-01-17 16:48:15 +01:00
easy.h badwords: catch and fix threading-related words 2025-12-16 21:26:58 +01:00
header.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
Makefile.am tidy-up: miscellaneous 2026-01-15 13:06:13 +01:00
mprintf.h tidy-up: prefer ifdef/ifndef for single checks 2025-07-27 22:35:17 +02:00
multi.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
options.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
stdcheaders.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
system.h build: drop Windows CE / CeGCC support 2025-11-15 15:35:23 +01:00
typecheck-gcc.h include: avoid recursive macros 2026-02-15 22:54:32 +01:00
urlapi.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00
websockets.h tidy-up: miscellaneous 2025-12-26 22:06:09 +01:00