]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
url: fix compiler warning in no-verbose builds
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 Sep 2021 15:09:05 +0000 (17:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 Sep 2021 17:10:14 +0000 (19:10 +0200)
Follow-up from 2f0bb864c12

Closes #7700

lib/url.c

index b672710c52230d6bd476d572716c6efc40e1dbcb..37b6c0e844b0f1a205cd3c28eecda9fbeff5d4a8 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1893,9 +1893,11 @@ static void zonefrom_url(CURLU *uh, struct Curl_easy *data,
       scopeidx = if_nametoindex(zoneid);
 #endif
       if(!scopeidx) {
+#ifndef CURL_DISABLE_VERBOSE_STRINGS
         char buffer[STRERROR_LEN];
         infof(data, "Invalid zoneid: %s; %s", zoneid,
               Curl_strerror(errno, buffer, sizeof(buffer)));
+#endif
       }
       else
         conn->scope_id = scopeidx;