windows: test non-verbose builds, fix fallouts
No binary (build failed)
—
(log yok)
| @@ -436,7 +436,7 @@ jobs: | |
| env: 'x86_64' | |
| ver: '9.5.0' | |
| url: 'https://github.com/brechtsanders/winlibs_mingw/releases/download/9.5.0-10.0.0-msvcrt-r1/winlibs-x86_64-posix-seh-gcc-9.5.0-mingw-w64msvcrt-10.0.0-r1.7z' | |
| - | config: '-DENABLE_DEBUG=ON -DBUILD_SHARED_LIBS=OFF -DCURL_USE_SCHANNEL=ON -DENABLE_UNICODE=OFF' |
| + | config: '-DENABLE_DEBUG=ON -DBUILD_SHARED_LIBS=OFF -DCURL_USE_SCHANNEL=ON -DENABLE_UNICODE=OFF -DCURL_DISABLE_VERBOSE_STRINGS=ON' |
| type: 'Release' | |
| tflags: 'skiprun' | |
| - name: 'schannel mbedtls U' # mingw-w64 6.0 | |
| @@ -89,6 +89,7 @@ if [ "${BUILD_SYSTEM}" = 'CMake' ]; then | |
| -DCURL_USE_SCHANNEL="${SCHANNEL}" \ | |
| -DCURL_USE_OPENSSL="${OPENSSL}" \ | |
| -DCURL_USE_LIBPSL=OFF \ | |
| + | ${CMAKE_OPTIONS:-} \ |
| ${options} \ | |
| || { cat "${root}"/_bld/CMakeFiles/CMake* 2>/dev/null; false; } | |
| [ "${APPVEYOR_BUILD_WORKER_IMAGE}" = 'Visual Studio 2013' ] && cd .. | |
| @@ -41,6 +41,7 @@ environment: | |
| HTTP_ONLY: 'OFF' | |
| TFLAGS: 'skiprun' | |
| EXAMPLES: 'OFF' | |
| + | CMAKE_OPTIONS: '' |
| matrix: | |
| @@ -53,7 +54,7 @@ environment: | |
| PRJ_CFG: Release | |
| OPENSSL: 'ON' | |
| SHARED: 'ON' | |
| - | - job_name: 'CM VS2022, Release, arm64, Schannel, Static, no-DEBUGBUILD, Build-tests' |
| + | - job_name: 'CM VS2022, Release, arm64, Schannel, Static, !DEBUGBUILD, Build-tests' |
| APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022' | |
| PRJ_GEN: 'Visual Studio 17 2022' | |
| TARGET: '-A ARM64' | |
| @@ -101,7 +102,7 @@ environment: | |
| SCHANNEL: 'ON' | |
| SHARED: 'ON' | |
| TFLAGS: 'skipall' | |
| - | - job_name: 'CM VS2019, Debug, x64, OpenSSL 3.0 + Schannel, Shared, Build-tests' |
| + | - job_name: 'CM VS2019, Debug, x64, OpenSSL 3.0 + Schannel, Shared, !verbose, Build-tests' |
| APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2019' | |
| PRJ_GEN: 'Visual Studio 16 2019' | |
| TARGET: '-A x64' | |
| @@ -109,6 +110,7 @@ environment: | |
| OPENSSL: 'ON' | |
| SCHANNEL: 'ON' | |
| SHARED: 'ON' | |
| + | CMAKE_OPTIONS: '-DCURL_DISABLE_VERBOSE_STRINGS=ON' |
| - job_name: 'CM VS2022, Debug, x64, OpenSSL 3.5 + Schannel, Static, Unicode, Build-tests & examples, clang-cl' | |
| APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022' | |
| PRJ_GEN: 'Visual Studio 17 2022' | |
| @@ -119,7 +121,7 @@ environment: | |
| ENABLE_UNICODE: 'ON' | |
| EXAMPLES: 'ON' | |
| TOOLSET: 'ClangCl' | |
| - | - job_name: 'CM VS2022, Release, x64, Schannel, Shared, Unicode, no-DEBUGBUILD, Build-tests' |
| + | - job_name: 'CM VS2022, Release, x64, Schannel, Shared, Unicode, !DEBUGBUILD, Build-tests' |
| APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022' | |
| PRJ_GEN: 'Visual Studio 17 2022' | |
| TARGET: '-A x64' | |
| @@ -614,7 +614,7 @@ static int mqtt_decode_len(size_t *lenp, unsigned char *buf, size_t buflen) | |
| return 0; | |
| } | |
| - | #ifdef DEBUGBUILD |
| + | #if defined(DEBUGBUILD) && defined(CURLVERBOSE) |
| static const char *statenames[] = { | |
| "MQTT_FIRST", | |
| "MQTT_REMAINING_LENGTH", | |
| @@ -160,6 +160,7 @@ static void mstate(struct Curl_easy *data, CURLMstate state | |
| return; | |
| #ifdef DEBUGBUILD | |
| + | NOVERBOSE((void)lineno); |
| CURL_TRC_M(data, "-> [%s] (line %d)", CURL_MSTATE_NAME(state), lineno); | |
| #else | |
| CURL_TRC_M(data, "-> [%s]", CURL_MSTATE_NAME(state)); | |
| @@ -2259,7 +2259,7 @@ static CURLcode schannel_recv(struct Curl_cfilter *cf, struct Curl_easy *data, | |
| goto cleanup; | |
| } | |
| else { | |
| - | VERBOSE(char buffer[STRERROR_LEN]); |
| + | char buffer[STRERROR_LEN]; |
| failf(data, "schannel: failed to read data from server: %s", | |
| Curl_sspi_strerror(sspi_status, buffer, sizeof(buffer))); | |
| result = CURLE_RECV_ERROR; | |