From: Daniel Stenberg Date: Fri, 10 Sep 2021 15:09:05 +0000 (+0200) Subject: url: fix compiler warning in no-verbose builds X-Git-Tag: curl-7_79_0~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e41e1b2a4d96cef619e68b5235844b074c2001bc;p=thirdparty%2Fcurl.git url: fix compiler warning in no-verbose builds Follow-up from 2f0bb864c12 Closes #7700 --- diff --git a/lib/url.c b/lib/url.c index b672710c52..37b6c0e844 100644 --- 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;