curl-curl/lib/vauth
Viktor Szakats 578ee6b79b
gcc: guard #pragma diagnostic in core code for <4.6, disable picky warnings
Extend `#pragma diagnostic push`/`pop` guards to the whole codebase
(from tests and examples only) to disable it for GCC <4.6. Rename guard
to `CURL_HAVE_DIAG` and make it include llvm/clang to be interchangeable
with `__GNUC__ || __clang__` in this context.

The above means no longer disabling certain warnings locally, so pair
this with disabling all picky warnings for GCC <4.6.

Also:
- drop global workarounds for misbehaving GCC <4.6 compiler warnings.
  Not needed with picky warnings disabled.

Reported-by: fds242 on github
Reported-by: Sergey Fedorov
Thanks-to: Orgad Shaneh
Follow-up to f07a98ae11 #20366
Fixes #20892
Fixes #20924
Closes #20902
Closes #20907
2026-03-18 11:33:37 +01:00
..
cleartext.c lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
cram.c lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
digest_sspi.c badwords: rework exceptions, fix many of them 2026-03-12 01:01:16 +01:00
digest.c digest: pass in the user name quoted (as well) 2026-03-16 22:43:14 +01:00
digest.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
gsasl.c lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
krb5_gssapi.c gcc: guard #pragma diagnostic in core code for <4.6, disable picky warnings 2026-03-18 11:33:37 +01:00
krb5_sspi.c docs: avoid starting sentences with However, 2026-03-07 23:49:11 +01:00
ntlm_sspi.c badwords: rework exceptions, fix many of them 2026-03-12 01:01:16 +01:00
ntlm.c badwords: rework exceptions, fix many of them 2026-03-12 01:01:16 +01:00
oauth2.c lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
spnego_gssapi.c gcc: guard #pragma diagnostic in core code for <4.6, disable picky warnings 2026-03-18 11:33:37 +01:00
spnego_sspi.c badwords: rework exceptions, fix many of them 2026-03-12 01:01:16 +01:00
vauth.c lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
vauth.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00