Skip to content

Commit 7885244

Browse files
committed
configure: Don't use VLA in C99 test, as it's no longer used in yash
1 parent db938d6 commit 7885244

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

configure

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,11 +537,9 @@ checking 'additional option to compile C99 code'
537537
cat >"${tempsrc}" <<END
538538
int main(int argc, char **argv) {
539539
if (argc == 0) return 0;
540-
int vla[argc];
541-
vla[0] = 42;
542540
// one-line comment
543541
struct s { int v; } i = { .v = argv[0][0] };
544-
return vla[0] + i.v;
542+
return i.v;
545543
}
546544
END
547545
if

0 commit comments

Comments
 (0)