curl/include/curl
Viktor Szakats 5cefda1b93
build: tidy up deprecation suppression, enable warnings for clang
Suppress deprecation warnings the closest to the deprecated code, using
`CURL_IGNORE_DEPRECATION()`. Then drop build-specific suppressions, and
file-wide ones. The latter is not compatible with Unity mode. Also
replace manual suppressions with a macro to apply to all compilers with
deprecation warning support. Also enable deprecation warnings for clang.

- curl/curl.h: enable deprecation warnings for clang.

- docs/examples: stop setting `CURL_DISABLE_DEPRECATION` with autotools.
  Suppression moved to C-level earlier. Syncs with cmake.
  Follow-up to 5fc61a37c1 #14123

- tests/http/clients: stop setting `CURL_DISABLE_DEPRECATION` in
  autotools. If it becomes necessary in the future, it can be done in
  C via the macro. Syncs with cmake.

- lib1545: stop setting `CURL_DISABLE_DEPRECATION` in autotools.
  Drop guard from test source.
  Follow-up to 0f10360073 #12444

- libtest, unit: replace `CURL_DISABLE_DEPRECATION` with
  `CURL_IGNORE_DEPRECATION()`.

- docs/examples: replace pragmas with `CURL_IGNORE_DEPRECATION()`.

Closes #14789
2024-09-21 00:59:52 +02:00
..
.gitignore copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl.h build: tidy up deprecation suppression, enable warnings for clang 2024-09-21 00:59:52 +02:00
curlver.h RELEASE-NOTES: synced 2024-09-18 15:21:04 +02:00
easy.h code: language cleanup in comments 2024-07-01 22:58:55 +02:00
header.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
Makefile.am build: untangle CURLDEBUG and DEBUGBUILD macros 2024-05-28 08:12:00 +02:00
mprintf.h printf: fix mingw-w64 format checks 2024-09-02 21:03:01 +02:00
multi.h code: language cleanup in comments 2024-07-01 22:58:55 +02:00
options.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
stdcheaders.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
system.h tidy-up: spelling 'built-in' 2024-08-20 21:32:40 +02:00
typecheck-gcc.h code: language cleanup in comments 2024-07-01 22:58:55 +02:00
urlapi.h code: language cleanup in comments 2024-07-01 22:58:55 +02:00
websockets.h websocket: rename arguments/variables to match docs 2023-07-22 00:31:31 +02:00