Blob Blame History Raw
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 {
@@ -188,7 +188,6 @@ static void test_ds_buffers(void)
 		void *b = t_buffer_get(1000);
 		void *a = t_malloc_no0(1);
 		void *b2 = t_buffer_get(1001);
-		test_assert(a == b); /* expected, not guaranteed */
 		test_assert(b2 != b);
 	} T_END;
 	test_end();