Skip to content

Commit a5750a0

Browse files
committed
Add -Wvla to CFLAGS when debugging
This prevents variable-length arrays from creeping back into the codebase. Closes #239.
1 parent 0aa05b1 commit a5750a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ confighdefs=''
358358
# define options for debugging
359359
if ${debug}
360360
then
361-
cflags="${CFLAGS--pedantic -MMD -Wall -Wextra -Og -fno-inline -ggdb}"
361+
cflags="${CFLAGS--pedantic -MMD -Wall -Wextra -Wvla -Og -fno-inline -ggdb}"
362362
else
363363
defconfigh "NDEBUG"
364364
fi

0 commit comments

Comments
 (0)