summaryrefslogtreecommitdiffstats
path: root/waftools
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-07-24 08:08:14 +0200
committerwm4 <wm4@nowhere>2017-07-24 08:12:42 +0200
commit38b367c0399e2e05c31c75b7caeda7d2129caf38 (patch)
tree852fd41423d7205980717cbd44a8c4e2361325e4 /waftools
parent24dc91907a039b7a86bf6d5b2a0a914bf1f44c3d (diff)
downloadmpv-38b367c0399e2e05c31c75b7caeda7d2129caf38.tar.bz2
mpv-38b367c0399e2e05c31c75b7caeda7d2129caf38.tar.xz
build: warn against VLA
Although C99 supports them, they are optional in C11, and we don't like/use them anyway.
Diffstat (limited to 'waftools')
-rw-r--r--waftools/detections/compiler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py
index 5bbba87fd7..7033cf561f 100644
--- a/waftools/detections/compiler.py
+++ b/waftools/detections/compiler.py
@@ -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",