[vte] vala: Make the vala test build without warnings
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] vala: Make the vala test build without warnings
- Date: Mon, 15 Apr 2019 16:45:38 +0000 (UTC)
commit 59915c1163862b4411acd4e6fbd1c3c3d1673b6a
Author: Christian Persch <chpe src gnome org>
Date: Mon Apr 15 18:44:28 2019 +0200
vala: Make the vala test build without warnings
Fix the code, and pass --enable-deprecated to silence the deprecation warnings.
The vala test is itself deprecated, so there is no need to keep it current
with gtk deprecations.
bindings/vala/app.vala | 4 +---
bindings/vala/meson.build | 4 +++-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/bindings/vala/app.vala b/bindings/vala/app.vala
index a534e76b..70ddf0a7 100644
--- a/bindings/vala/app.vala
+++ b/bindings/vala/app.vala
@@ -819,8 +819,6 @@ class App : Gtk.Application
public struct Options
{
- //FIXME Merge this struct into App class
- public int dummy;
public static bool audible = false;
public static string? command = null;
private static string? cjk_ambiguous_width_string = null;
@@ -983,7 +981,7 @@ class App : Gtk.Application
return value;
}
- public static const OptionEntry[] entries = {
+ public const OptionEntry[] entries = {
{ "audible-bell", 'a', 0, OptionArg.NONE, ref audible,
"Use audible terminal bell", null },
{ "command", 'c', 0, OptionArg.STRING, ref command,
diff --git a/bindings/vala/meson.build b/bindings/vala/meson.build
index db848e86..809e678a 100644
--- a/bindings/vala/meson.build
+++ b/bindings/vala/meson.build
@@ -63,7 +63,9 @@ vapp_cflags = [
'-Wno-unused-variable',
]
-vapp_valaflags = []
+vapp_valaflags = [
+ '--enable-deprecated'
+]
if valac.version().version_compare('>= 0.31.1')
vapp_valaflags += '--disable-since-check'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]