From de7d4210678f8387dc6ebdf9d2d6be69ef2d3332 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 17 Aug 2023 14:43:14 +0200 Subject: [PATCH] unit2600: fix build warning if built without verbose messages --- tests/unit/unit2600.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/unit/unit2600.c b/tests/unit/unit2600.c index b52db81a99..d6a3501755 100644 --- a/tests/unit/unit2600.c +++ b/tests/unit/unit2600.c @@ -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; } -- 2.47.3