From 53e53b018bd6ac967b516372aac38befd6d7a3b7 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Thu, 23 Jul 2020 00:22:45 +0300 Subject: [PATCH] test/regress_buffer.c: fix -Wbad-function-cast (in some specific env) Fixes: #1054 --- test/regress_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/regress_buffer.c b/test/regress_buffer.c index f259b924..fca74062 100644 --- a/test/regress_buffer.c +++ b/test/regress_buffer.c @@ -441,7 +441,7 @@ test_evbuffer_pullup_with_empty(void *ptr) buf = evbuffer_new(); evbuffer_validate(buf); tt_int_op(evbuffer_get_length(buf), ==, 0); - tt_int_op(evbuffer_pullup(buf, -1), ==, NULL); + tt_assert(evbuffer_pullup(buf, -1) == NULL); evbuffer_free(buf); buf = evbuffer_new(); -- 2.40.0