Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
dav1d
Commits
c3690990
Commit
c3690990
authored
Sep 25, 2018
by
Janne Grunau
Committed by
Ronald S. Bultje
Sep 26, 2018
Browse files
build: add -Wvla to warn about undesired variable length arrays
parent
d30b9339
Changes
1
Hide whitespace changes
Inline
Side-by-side
meson.build
View file @
c3690990
...
...
@@ -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))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment