Skip to content

Commit

Permalink
Increase default warning level from 1 to 2
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Sep 9, 2024
1 parent f2aee60 commit dd49465
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('qemu', ['c'], meson_version: '>=1.1.0',
default_options: ['warning_level=1', 'c_std=gnu11', 'cpp_std=gnu++11', 'b_colorout=auto',
default_options: ['warning_level=2', 'c_std=gnu11', 'cpp_std=gnu++11', 'b_colorout=auto',
'b_staticpic=false', 'stdsplit=false', 'optimization=2', 'b_pie=true'],
version: files('VERSION'))

Expand Down Expand Up @@ -643,14 +643,19 @@ warn_flags = [
'-Wwrite-strings',

# Then disable some undesirable warnings
'-Wno-enum-conversion',
'-Wno-gnu-variable-sized-type-not-at-end',
'-Wno-initializer-overrides',
'-Wno-missing-field-initializers',
'-Wno-missing-include-dirs',
'-Wno-psabi',
'-Wno-shift-negative-value',
'-Wno-sign-compare',
'-Wno-string-plus-int',
'-Wno-tautological-type-limit-compare',
'-Wno-typedef-redefinition',
'-Wno-override-init',
'-Wno-unused-parameter',
]

if host_os != 'darwin'
Expand Down

0 comments on commit dd49465

Please sign in to comment.