From e41e1b2a4d96cef619e68b5235844b074c2001bc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 10 Sep 2021 17:09:05 +0200 Subject: [PATCH] url: fix compiler warning in no-verbose builds Follow-up from 2f0bb864c12 Closes #7700 --- lib/url.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.2