meson: Enable -Wdeclaration-after-statement

Makes it easier to enforce existing coding style.

Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no>
This commit is contained in:
Hans-Kristian Arntzen 2020-10-28 10:56:05 +01:00 committed by Philip Rebohle
parent 61b13cc278
commit 336ca7e79f
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ add_project_arguments(vkd3d_compiler.get_supported_arguments([
'-Wno-format',
'-Wno-missing-field-initializers',
'-Wno-unused-parameter',
'-Wdeclaration-after-statement',
'/wd4244', # Narrowing conversion
'/wd4101', # Unreferenced local variable
'/wd4267', # Another narrowing conversion