Fix two warnings

pull/184/head
jvoisin 2022-01-04 18:39:49 +01:00 committed by Daniel Micay
parent 001eb0687b
commit 052b756840
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@
#include <string.h>
#include "../test_util.h"
#include "../../util.h"
OPTNONE int main(void) {
char *p = malloc(256 * 1024);
@ -9,7 +10,7 @@ OPTNONE int main(void) {
return 1;
}
free(p);
char *q = malloc(256 * 1024);
UNUSED char *q = malloc(256 * 1024);
p[64 * 1024 + 1] = 'a';
return 0;
}

View File

@ -2,6 +2,7 @@
#include <string.h>
#include "../test_util.h"
#include "../../util.h"
OPTNONE int main(void) {
char *p = malloc(128);
@ -9,7 +10,7 @@ OPTNONE int main(void) {
return 1;
}
free(p);
char *q = malloc(128);
UNUSED char *q = malloc(128);
p[65] = 'a';