mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-12-18 04:14:23 -05:00
Fix two mundane clang warnings in the testsuite
This commit is contained in:
parent
ffdf7b1ee1
commit
c5be4b1888
@ -1,9 +1,10 @@
|
||||
#include <malloc.h>
|
||||
|
||||
#include "../test_util.h"
|
||||
|
||||
size_t malloc_object_size(void *ptr);
|
||||
|
||||
__attribute__((optimize(0)))
|
||||
int main() {
|
||||
OPTNONE int main(void) {
|
||||
char *p = malloc(16);
|
||||
if (!p) {
|
||||
return 1;
|
||||
|
@ -1,9 +1,10 @@
|
||||
#include <malloc.h>
|
||||
|
||||
#include "../test_util.h"
|
||||
|
||||
size_t malloc_object_size(void *ptr);
|
||||
|
||||
__attribute__((optimize(0)))
|
||||
int main() {
|
||||
OPTNONE int main(void) {
|
||||
void *p = malloc(16);
|
||||
if (!p) {
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user