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:
1 parent
24dc91907a
commit
38b367c039
1 file changed
+2
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user