build: warn against VLA

Although C99 supports them, they are optional in C11, and we don't
like/use them anyway.
This commit is contained in:
wm4 committed 2017-07-24 08:12:42 +02:00
1 parent 24dc91907a
commit 38b367c039
1 file changed
+2 -1
+2 -1
View File
@@ -36,7 +36,8 @@ def __add_generic_flags__(ctx):
"-Wstrict-prototypes",
"-Wno-format-zero-length",
"-Werror=format-security",
"-Wno-redundant-decls"])
"-Wno-redundant-decls",
"-Wvla"])
def __add_gcc_flags__(ctx):
ctx.env.CFLAGS += ["-Wall", "-Wundef", "-Wmissing-prototypes", "-Wshadow",