meson: Stop passing -Wall
Passing -Wall results in meson logging a warning, suggesting to use different warning levels instead. Lets do what meson say. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2319>
This commit is contained in:
parent
6916402456
commit
eeb96e95a5
@ -396,7 +396,6 @@ buildtype = get_option('buildtype')
|
|||||||
if buildtype != 'plain'
|
if buildtype != 'plain'
|
||||||
all_warnings = [
|
all_warnings = [
|
||||||
'-fno-strict-aliasing',
|
'-fno-strict-aliasing',
|
||||||
'-Wall',
|
|
||||||
'-Wpointer-arith',
|
'-Wpointer-arith',
|
||||||
'-Wmissing-declarations',
|
'-Wmissing-declarations',
|
||||||
'-Wformat=2',
|
'-Wformat=2',
|
||||||
@ -428,6 +427,11 @@ if buildtype != 'plain'
|
|||||||
'-Werror=pointer-to-int-cast',
|
'-Werror=pointer-to-int-cast',
|
||||||
'-Werror=empty-body',
|
'-Werror=empty-body',
|
||||||
'-Werror=write-strings',
|
'-Werror=write-strings',
|
||||||
|
'-Wno-sign-compare',
|
||||||
|
'-Wno-cast-function-type',
|
||||||
|
'-Wno-unused-parameter',
|
||||||
|
'-Wno-missing-field-initializers',
|
||||||
|
'-Wno-type-limits',
|
||||||
]
|
]
|
||||||
supported_warnings = cc.get_supported_arguments(all_warnings)
|
supported_warnings = cc.get_supported_arguments(all_warnings)
|
||||||
add_project_arguments(supported_warnings, language: 'c')
|
add_project_arguments(supported_warnings, language: 'c')
|
||||||
|
Loading…
Reference in New Issue
Block a user