diff --git a/test.c b/test.c index 0dccdc4..83a8bf5 100644 --- a/test.c +++ b/test.c @@ -14,7 +14,6 @@ void output(void *i, size_t, struct KekeArray *) { printf("%d, ", *(int *)i); } - int main(void) { struct KekeArray *array = keke_array_alloc(ARRAY_LEN, sizeof(int)); @@ -77,7 +76,6 @@ int main(void) { keke_array_foreach(array, output); puts("\n"); - keke_array_free(array); keke_array_free(array2); puts("\n"); diff --git a/test.sh b/test.sh index 9676a3f..cbe359c 100755 --- a/test.sh +++ b/test.sh @@ -2,5 +2,5 @@ rm test cc=clang test "" = "$(which clang 2>&1)" && cc=gcc -$cc -Ofast -Wall -Wextra -o test test.c +$cc -O2 -Wall -Wextra -Wno-c2x-extensions -o test test.c ./test