curl-curl/include/curl
Viktor Szakats 9e6f1c5efb
build: add build-level CURL_DISABLE_TYPECHECK options
Usage:
- autotools: `--disable-typecheck` (or `--enable-typecheck` (default))
- cmake: `-DCURL_DISABLE_TYPECHECK=ON`.

To disable `curl_easy_setopt()`/`curl_easy_getinfo()` type checking with
supported (new) gcc and clang compilers. It is useful to improve build
performance for the `tests/libtest` target. In particular the CodeQL
analyzer may take above an hour to compile with type checking enabled,
and disabling it brings it down to seconds. On local machines it may
also cut build times in half when build testdeps, depending on platform
and compiler.

Other than these cases, we recommend leaving type checking enabled.

Ref: fdacf34aae #19632

Also:
- GHA/codeql: use it.
- test1165: check in `include/curl`.
- lib1912: delete stray todo comment.
- spelling and comment nits.

Closes #19637
2025-11-21 13:48:35 +01:00
..
curl.h tidy-up: miscellaneous 2025-10-25 00:19:00 +02:00
curlver.h RELEASE-NOTES: synced 2025-11-13 08:49:49 +01:00
easy.h badwords: re-sync with curl-www, fix issues found 2025-11-12 00:53:44 +01:00
header.h tidy-up: prefer ifdef/ifndef for single checks 2025-07-27 22:35:17 +02:00
Makefile.am checksrc: avoid extra runs in CI, enable more check locally, fix fallouts 2025-05-19 18:59:50 +02:00
mprintf.h tidy-up: prefer ifdef/ifndef for single checks 2025-07-27 22:35:17 +02:00
multi.h badwords: re-sync with curl-www, fix issues found 2025-11-12 00:53:44 +01:00
options.h tidy-up: prefer ifdef/ifndef for single checks 2025-07-27 22:35:17 +02: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 build: add build-level CURL_DISABLE_TYPECHECK options 2025-11-21 13:48:35 +01:00
urlapi.h tidy-up: prefer ifdef/ifndef for single checks 2025-07-27 22:35:17 +02:00
websockets.h websocket: support CURLOPT_READFUNCTION 2025-08-11 23:28:54 +02:00