Warn about use of variable length arrays

This commit is contained in:
Eric Biggers 2016-05-25 23:46:07 -05:00
parent d39f4505a1
commit e8003ecd71

View File

@ -45,7 +45,8 @@ override CFLAGS := \
$(call cc-option,-Wpedantic) \
$(call cc-option,-Wdeclaration-after-statement) \
$(call cc-option,-Wmissing-prototypes) \
$(call cc-option,-Wstrict-prototypes)
$(call cc-option,-Wstrict-prototypes) \
$(call cc-option,-Wvla)
cc-option = $(shell if $(CC) $(1) -c -x c /dev/null -o /dev/null \
1>&2 2>/dev/null; then echo $(1); fi)