curl/m4
Viktor Szakats bd9f9b085a
configure: silence compiler warnings in feature checks, drop duplicates
Silence compiler warnings (200 of them across the main CI workflows):
```
warning #2193: null argument provided for parameter marked with attribute "nonnull"
warning: Null pointer passed to 1st parameter expecting 'nonnull' [core.NonNullParamChecker]
warning: Null pointer passed to 2nd parameter expecting 'nonnull' [core.NonNullParamChecker]
warning: argument 1 null where non-null expected [-Wnonnull]
warning: argument 2 null where non-null expected [-Wnonnull]
warning: comparison of unsigned expression in '< 0' is always false [-Wtype-limits]
warning: null argument where non-null required (argument 1) [-Wnonnull]
```

Also drop `if ... can be linked` feature checks that were identical to
`if ... is compilable` checks, for:
`closesocket`, `ioctlsocket`, `socket`, `freeaddrinfo`, `getaddrinfo`,
`gethostname`, `getpeername`, `getsockname`,
`CloseSocket` (AmigaOS), `IoctlSocket` (AmigaOS).
Another option is to really do the link checks. But, if they weren't
missed so far, it seems safer to drop than risk a detection failure,
as was the case with AmigaOS functions while working on this PR.

There remain 22 `-Wnonnull` warnings in `gethostbyname_r()`,
`getpeername()` `getsockname()`. Most of the rest is necessary for
detection, or originate from autotools and CMake detection code
templates. Some still fixable, like duplicate libs.

Follow-up to ca2f49ded0 #16287
Closes #16377
2025-02-21 13:59:51 +01:00
..
.gitignore tidy-up: .gitignore lines mostly 2025-01-27 20:59:46 +01:00
curl-amissl.m4 Makefile.mk: drop in favour of autotools and cmake (MS-DOS, AmigaOS3) 2024-12-16 23:20:55 +01:00
curl-bearssl.m4 build: drop unused feature macros, update exception list 2024-12-16 18:05:24 +01:00
curl-compilers.m4 build: silence bogus -Wconversion warnings with gcc 5.1-5.4 2025-02-19 18:03:23 +01:00
curl-confopts.m4 build: fix compiler warnings in feature detections 2025-02-16 02:39:35 +01:00
curl-functions.m4 configure: silence compiler warnings in feature checks, drop duplicates 2025-02-21 13:59:51 +01:00
curl-gnutls.m4 build: drop unused feature macros, update exception list 2024-12-16 18:05:24 +01:00
curl-mbedtls.m4 build: drop unused feature macros, update exception list 2024-12-16 18:05:24 +01:00
curl-openssl.m4 build: fix compiler warnings in feature detections 2025-02-16 02:39:35 +01:00
curl-override.m4 build: fix compiler warnings in feature detections 2025-02-16 02:39:35 +01:00
curl-reentrant.m4 lib: use Curl_str_* instead of strtok_r() 2025-02-17 13:18:28 +01:00
curl-rustls.m4 configure: use curl_cv_apple variable 2025-02-16 02:03:16 +01:00
curl-schannel.m4 build: drop unused feature macros, update exception list 2024-12-16 18:05:24 +01:00
curl-sectransp.m4 build: drop unused feature macros, update exception list 2024-12-16 18:05:24 +01:00
curl-sysconfig.m4 configure: use curl_cv_apple variable 2025-02-16 02:03:16 +01:00
curl-wolfssl.m4 build: drop unused feature macros, update exception list 2024-12-16 18:05:24 +01:00
xc-am-iface.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
xc-cc-check.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
xc-lt-iface.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
xc-val-flgs.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
zz40-xc-ovr.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
zz50-xc-ovr.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
zz60-xc-ovr.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00