From 75952581ee2391438b933a4d4021d7f2f4f43724 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 26 Dec 2021 15:34:37 +0100 Subject: [PATCH] Silence a GCC warning As suggested in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425#c34 --- test/malloc_info.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/malloc_info.c b/test/malloc_info.c index 138d850..f3ccc52 100644 --- a/test/malloc_info.c +++ b/test/malloc_info.c @@ -6,10 +6,10 @@ #include "test_util.h" OPTNONE static void leak_memory(void) { - (void)malloc(1024 * 1024 * 1024); - (void)malloc(16); - (void)malloc(32); - (void)malloc(4096); + (void)!malloc(1024 * 1024 * 1024); + (void)!malloc(16); + (void)!malloc(32); + (void)!malloc(4096); } static void *do_work(void *p) {