From: Aki Tuomi Date: Mon, 30 Dec 2024 05:35:32 +0000 (+0200) Subject: lib: test-data-stack - Explicitly ignore result from t_malloc_no0() when neeeded X-Git-Tag: 2.4.0~1363 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c82fbae3e5c9dbb686a36a0332f59fa056783d72;p=thirdparty%2Fdovecot%2Fcore.git lib: test-data-stack - Explicitly ignore result from t_malloc_no0() when neeeded Satisfies static analysers --- diff --git a/src/lib/test-data-stack.c b/src/lib/test-data-stack.c index 3c33597685..03f97b4a50 100644 --- a/src/lib/test-data-stack.c +++ b/src/lib/test-data-stack.c @@ -98,9 +98,9 @@ static void test_ds_get_bytes_available(void) if (i > 0) t_malloc_no0(i); avail1 = t_get_bytes_available(); - t_malloc_no0(avail1); + (void)t_malloc_no0(avail1); test_assert_idx(t_get_bytes_available() == 0, i); - t_malloc_no0(1); + (void)t_malloc_no0(1); test_assert_idx(t_get_bytes_available() > 0, i); } T_END; T_BEGIN {