Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index ce24d04..f993f6f 100644
--- a/meson.build
+++ b/meson.build
@@ -111,7 +111,12 @@ if (get_option('buildtype') != 'debug' and
language: 'c')
endif
-add_project_arguments('-Wundef', language: 'c')
+warning_flags = [
+ '-Wundef',
+ '-Wvla', # should be '-Werror=vla
+]
+
+add_project_arguments(cc.get_supported_arguments(warning_flags), language: 'c')
foreach f : feature_defines
cdata.set(f.get(0), f.get(1))