diff options
author | wm4 <wm4@nowhere> | 2017-07-24 08:08:14 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-07-24 08:12:42 +0200 |
commit | 38b367c0399e2e05c31c75b7caeda7d2129caf38 (patch) | |
tree | 852fd41423d7205980717cbd44a8c4e2361325e4 | |
parent | 24dc91907a039b7a86bf6d5b2a0a914bf1f44c3d (diff) | |
download | mpv-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.
-rw-r--r-- | waftools/detections/compiler.py | 3 |
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", |