hx_download.c fix warning with schannel (or !ssl)

VS2022 compiler warning:
```
tests\client\hx_download.c(199,7): warning C4065: switch statement contains 'default' but no 'case' labels
```
https://ci.appveyor.com/project/curlorg/curl/builds/52476876/job/axqek5whkn3q69s7#L257
This commit is contained in:
Viktor Szakats 2025-07-29 01:21:38 +02:00
parent 180a1e64ef
commit 724a090a5f
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -132,6 +132,8 @@ static int my_progress_d_cb(void *userdata,
return 1;
}
#if defined(USE_QUICHE) || defined(USE_OPENSSL) || defined(USE_WOLFSSL) || \
defined(USE_GNUTLS) || defined(USE_MBEDTLS) || defined(USE_RUSTLS)
if(!t->checked_ssl && dlnow > 0) {
struct curl_tlssessioninfo *tls;
CURLcode res;
@ -202,6 +204,7 @@ static int my_progress_d_cb(void *userdata,
}
}
}
#endif
return 0;
}