From 065f5db5cfaaf1992a4a7a73eada391fbb2b4149 Mon Sep 17 00:00:00 2001 From: Seoxi Ryouko <3-Seoxi@users.noreply.git.starbit.dev> Date: Fri, 28 Mar 2025 04:30:07 -0500 Subject: [PATCH] Changed compiler flags --- test.c | 2 -- test.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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