build: disable typecheck via the command-line instead of curl_config.h

To make it apply to examples. This in turn makes analyzers run quicker
and with fewer false positives.

It's a special disable option, having its effect via `curl/curl.h`.

Bug: https://github.com/curl/curl/pull/20649#issuecomment-3934885021
Follow-up to 9e6f1c5efb #19637

Closes #20650
This commit is contained in:
Viktor Szakats 2026-02-20 15:03:17 +01:00
parent 1eb79cf54b
commit 4b4637a445
No known key found for this signature in database
4 changed files with 18 additions and 8 deletions

View file

@ -163,9 +163,6 @@
/* disables TFTP */
#cmakedefine CURL_DISABLE_TFTP 1
/* disables curl_easy_setopt()/curl_easy_getinfo() type checking */
#cmakedefine CURL_DISABLE_TYPECHECK 1
/* disables verbose strings */
#cmakedefine CURL_DISABLE_VERBOSE_STRINGS 1