Fix an unused parameter warning

This commit is contained in:
jvoisin 2022-01-04 17:56:48 +01:00
parent d1c39edc9b
commit 8a8eb10aaa

View file

@ -4,6 +4,7 @@
#include <malloc.h> #include <malloc.h>
#include "test_util.h" #include "test_util.h"
#include "../util.h"
OPTNONE static void leak_memory(void) { OPTNONE static void leak_memory(void) {
(void)!malloc(1024 * 1024 * 1024); (void)!malloc(1024 * 1024 * 1024);
@ -12,7 +13,7 @@ OPTNONE static void leak_memory(void) {
(void)!malloc(4096); (void)!malloc(4096);
} }
static void *do_work(void *p) { static void *do_work(UNUSED void *p) {
leak_memory(); leak_memory();
return NULL; return NULL;
} }