From 38b367c0399e2e05c31c75b7caeda7d2129caf38 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 24 Jul 2017 08:08:14 +0200 Subject: build: warn against VLA Although C99 supports them, they are optional in C11, and we don't like/use them anyway. --- waftools/detections/compiler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'waftools') 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", -- cgit v1.2.3