From: Viktor Szakats Date: Wed, 4 Sep 2024 01:25:09 +0000 (+0200) Subject: unit1660: fix unreachable code warning in no-SSL builds X-Git-Tag: curl-8_11_0~404 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3434c6b46e682452973972e8313613dfa58cd690;p=thirdparty%2Fcurl.git unit1660: fix unreachable code warning in no-SSL builds Or no-HTTP, no-HSTS builds, also MSH3 builds. CMake, VS2022, Debug, x64, no SSL, Static, Build-only: ``` C:\projects\curl\tests\unit\unit1660.c(46,1): error C2220: the following warning is treated as an error C:\projects\curl\tests\unit\unit1660.c(46,1): warning C4702: unreachable code ``` Ref: https://ci.appveyor.com/project/curlorg/curl/builds/50531210/job/cjewvo9agavthr3o#L216 Required-by: #14922 Cherry-picked from #14772 Closes #14971 --- diff --git a/tests/unit/unit1660.c b/tests/unit/unit1660.c index e14944592c..46ab93ed8f 100644 --- a/tests/unit/unit1660.c +++ b/tests/unit/unit1660.c @@ -41,7 +41,7 @@ unit_stop(void) #if defined(CURL_DISABLE_HTTP) || defined(CURL_DISABLE_HSTS) UNITTEST_START { - return CURLE_OK; /* nothing to do when HTTP or HSTS are disabled */ + puts("nothing to do when HTTP or HSTS are disabled"); } UNITTEST_STOP #else