← Commit list

757fd6aae9

Viktor Szakats
Viktor Szakats
2026-03-22
SUCCESS Duration: 263s

Subject

gnutls: fix clang-tidy warning with !verbose

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vtls/gtls.c+2 -0
@@ -257,6 +257,7 @@ static CURLcode cf_gtls_handshake(struct Curl_cfilter *cf,
return CURLE_AGAIN;
}
else if((rc < 0) && !gnutls_error_is_fatal(rc)) {
+#ifdef CURLVERBOSE
const char *strerr = NULL;
if(rc == GNUTLS_E_WARNING_ALERT_RECEIVED) {
@@ -268,6 +269,7 @@ static CURLcode cf_gtls_handshake(struct Curl_cfilter *cf,
strerr = gnutls_strerror(rc);
infof(data, "gnutls_handshake() warning: %s", strerr);
+#endif
return CURLE_AGAIN;
}
else if((rc < 0) && backend->gtls.io_result) {