Skip to content

Commit c0ced5d

Browse files
authored
Silence C warnings (#2734)
...and enable warnings about deprecated stuff from Vala
1 parent 23f9360 commit c0ced5d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ glib_version_required = '2.78'
3636
add_project_arguments([
3737
'--target-glib=' + glib_version_required,
3838
'--hide-internal',
39-
'--enable-deprecated',
4039
'--vapidir=' + vapi_dir,
4140
],
4241
language: 'vala',
@@ -45,6 +44,9 @@ add_project_arguments([
4544
'-Wno-discarded-qualifiers',
4645
'-Wno-incompatible-pointer-types',
4746
'-Wno-unused',
47+
'-Wno-address',
48+
'-Wno-duplicate-decl-specifier',
49+
'-Wno-deprecated-declarations',
4850
'-Wl,--enable-new-dtags',
4951

5052
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),

src/Background/BackgroundContainer.vala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public class Gala.BackgroundContainer : Meta.BackgroundGroup {
2626
if (event.get_button () == Clutter.Button.SECONDARY) {
2727
show_background_menu ((int)x, (int)y);
2828
}
29+
30+
return Source.CONTINUE;
2931
});
3032

3133
#if HAS_MUTTER47

0 commit comments

Comments
 (0)