mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-20 06:20:20 +02:00
Fix an unused parameter warning
This commit is contained in:
parent
d1c39edc9b
commit
8a8eb10aaa
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue