Changed compiler flags

This commit is contained in:
Seoxi Ryouko
2025-03-28 04:30:07 -05:00
parent 03ad39114a
commit 065f5db5cf
2 changed files with 1 additions and 3 deletions

2
test.c
View File

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

View File

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