Fix two mundane clang warnings in the testsuite

This commit is contained in:
jvoisin 2022-01-02 13:30:34 +01:00
parent 9142a9376b
commit 3c60cf6903
2 changed files with 6 additions and 4 deletions

View file

@ -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;

View file

@ -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;