]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
unit2600: fix build warning if built without verbose messages
authorDaniel Stenberg <daniel@haxx.se>
Thu, 17 Aug 2023 12:43:14 +0000 (14:43 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 17 Aug 2023 15:17:59 +0000 (17:17 +0200)
tests/unit/unit2600.c

index b52db81a9929c10830b3a247dc4ce6e636f50ae9..d6a35017553fdd0aaca96f96324638a2218f416b 100644 (file)
@@ -133,9 +133,12 @@ struct cf_test_ctx {
 static void cf_test_destroy(struct Curl_cfilter *cf, struct Curl_easy *data)
 {
   struct cf_test_ctx *ctx = cf->ctx;
-
+#ifndef CURL_DISABLE_VERBOSE_STRINGS
   infof(data, "%04dms: cf[%s] destroyed",
        (int)Curl_timediff(Curl_now(), current_tr->started), ctx->id);
+#else
+  (void)data;
+#endif
   free(ctx);
   cf->ctx = NULL;
 }