Fix two warnings

This commit is contained in:
jvoisin authored and Daniel Micay committed 2022-01-09 08:50:46 -05:00
1 parent 001eb0687b
commit 052b756840
2 files changed
+4 -2

No files matched your search

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