mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-20 06:20:20 +02:00
Silence a GCC warning
As suggested in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425#c34
This commit is contained in:
parent
e8f204401a
commit
b2e5a39d54
1 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue