unit2600: fix build warning if built without verbose messages

This commit is contained in:
Daniel Stenberg 2023-08-17 14:43:14 +02:00
parent 7c4cb065b7
commit de7d421067
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;
}