Silence a GCC warning

As suggested in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425#c34
This commit is contained in:
jvoisin 2021-12-26 15:34:37 +01:00 committed by Daniel Micay
parent a84d3f5310
commit 75952581ee

View File

@ -6,10 +6,10 @@
#include "test_util.h" #include "test_util.h"
OPTNONE static void leak_memory(void) { OPTNONE static void leak_memory(void) {
(void)malloc(1024 * 1024 * 1024); (void)!malloc(1024 * 1024 * 1024);
(void)malloc(16); (void)!malloc(16);
(void)malloc(32); (void)!malloc(32);
(void)malloc(4096); (void)!malloc(4096);
} }
static void *do_work(void *p) { static void *do_work(void *p) {