curl/lib/vtls
Viktor Szakats 4c548b978f
openssl: fix unused variable warnings in !verbose builds
Also fix clang-tidy `readability-redundant-control-flow`.

```
lib/vtls/openssl.c:4055:46: error: unused parameter 'reason' [-Wunused-parameter]
 4055 |                                          int reason)
      |                                              ^
lib/vtls/openssl.c:4279:19: error: variable 'status' set but not used [-Wunused-but-set-variable]
 4279 |       const char *status = NULL;
      |                   ^
```
Ref: https://github.com/curl/curl/actions/runs/24641388439/job/72045859306?pr=21379

```
lib/vtls/openssl.c:4092:7: error: Value stored to 'rv' is never read [clang-analyzer-deadcode.DeadStores]
 4092 |       rv = SSL_ech_get1_status(ssl, &inner, &outer);
      |       ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/vtls/openssl.c:4092:7: note: Value stored to 'rv' is never read
 4092 |       rv = SSL_ech_get1_status(ssl, &inner, &outer);
      |       ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/vtls/openssl.c:4112:3: error: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow]
 4111 | #endif
      | ~~~~~~
 4112 |   return;
      |   ^~~~~~~
 4113 | }
```
Ref: https://github.com/curl/curl/actions/runs/24642154148/job/72047919525?pr=21379#step:42:186

Cherry-picked from #21379

Closes #21380
2026-04-20 02:37:35 +02:00
..
apple.c badwords: rework exceptions, fix many of them 2026-03-12 01:01:16 +01:00
apple.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
cipher_suite.c lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
cipher_suite.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
gtls.c build: fix -Wformat-signedness by adjusting printf masks 2026-04-16 10:32:50 +02:00
gtls.h clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
hostcheck.c lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
hostcheck.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
keylog.c tidy-up: miscellaneous 2026-04-14 01:08:32 +02:00
keylog.h keylog.h: replace literal number with macro in declaration 2026-03-28 15:51:04 +01:00
mbedtls.c build: fix -Wformat-signedness by adjusting printf masks 2026-04-16 10:32:50 +02:00
mbedtls.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
openssl.c openssl: fix unused variable warnings in !verbose builds 2026-04-20 02:37:35 +02:00
openssl.h h3: HTTPS-RR use in HTTP/3 2026-04-09 09:30:52 +02:00
rustls.c build: fix -Wformat-signedness by adjusting printf masks 2026-04-16 10:32:50 +02:00
rustls.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
schannel.c build: fix -Wformat-signedness by adjusting printf masks 2026-04-16 10:32:50 +02:00
schannel.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
schannel_int.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
schannel_verify.c build: fix -Wformat-signedness by adjusting printf masks 2026-04-16 10:32:50 +02:00
vtls.c build: fix -Wformat-signedness by adjusting printf masks 2026-04-16 10:32:50 +02:00
vtls.h urldata: import port types and conn destination format 2026-03-15 12:02:26 +01:00
vtls_int.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
vtls_scache.c vtls_scache: rename CURLcode variable to result 2026-04-16 22:57:17 +02:00
vtls_scache.h badwords: rework exceptions, fix many of them 2026-03-12 01:01:16 +01:00
vtls_spack.c lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
vtls_spack.h lib: use lib source directory as base include path 2026-02-23 16:00:42 +01:00
wolfssl.c h3: HTTPS-RR use in HTTP/3 2026-04-09 09:30:52 +02:00
wolfssl.h clang-tidy: enable more checks, fix fallouts 2026-04-14 02:20:16 +02:00
x509asn1.c build: fix -Wformat-signedness by adjusting printf masks 2026-04-16 10:32:50 +02:00
x509asn1.h x509asn1: fixed and adapted for ASN1tostr unit testing 2026-03-20 13:03:40 +01:00