summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-09-10 17:09:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-09-10 19:10:14 +0200
commite41e1b2a4d96cef619e68b5235844b074c2001bc (patch)
tree785f47f32fa21726b3509f2ba2ae6425022b16a5
parent94da56269f3b77d6602c383cf06b0ce5987fae4f (diff)
downloadcurl-e41e1b2a4d96cef619e68b5235844b074c2001bc.tar.gz
url: fix compiler warning in no-verbose builds
Follow-up from 2f0bb864c12 Closes #7700
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index b672710c5..37b6c0e84 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;