From 001eb0687b38b624dd8fb8cd235487b24a2ccc16 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 4 Jan 2022 17:56:48 +0100 Subject: [PATCH] Fix an unused parameter warning --- test/malloc_info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/malloc_info.c b/test/malloc_info.c index f3ccc52..3eda5e3 100644 --- a/test/malloc_info.c +++ b/test/malloc_info.c @@ -4,6 +4,7 @@ #include #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; }