From 724a090a5fbfc4a49356042062dd72d54b228ad7 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 29 Jul 2025 01:21:38 +0200 Subject: [PATCH] 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 --- tests/libtest/cli_hx_download.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/libtest/cli_hx_download.c b/tests/libtest/cli_hx_download.c index afe49139ab..fc7f591bc7 100644 --- a/tests/libtest/cli_hx_download.c +++ b/tests/libtest/cli_hx_download.c @@ -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; }