Fix an unused parameter warning

pull/182/head
jvoisin 2022-01-04 17:56:48 +01:00 committed by Daniel Micay
parent 2a5662948e
commit 001eb0687b
1 changed files with 2 additions and 1 deletions

View File

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