[mutter] meson: Stop passing -Wall
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] meson: Stop passing -Wall
- Date: Fri, 4 Mar 2022 23:38:49 +0000 (UTC)
commit eeb96e95a590e3ea66450daaf8583d9a6a03bfa1
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Mar 4 21:02:25 2022 +0100
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>
meson.build | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 76034dc256..41fd0ab01e 100644
--- a/meson.build
+++ b/meson.build
@@ -396,7 +396,6 @@ buildtype = get_option('buildtype')
if buildtype != 'plain'
all_warnings = [
'-fno-strict-aliasing',
- '-Wall',
'-Wpointer-arith',
'-Wmissing-declarations',
'-Wformat=2',
@@ -428,6 +427,11 @@ if buildtype != 'plain'
'-Werror=pointer-to-int-cast',
'-Werror=empty-body',
'-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)
add_project_arguments(supported_warnings, language: 'c')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]