[gnome-builder] vala-pack: avoid some warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vala-pack: avoid some warnings
- Date: Fri, 26 Apr 2019 01:02:42 +0000 (UTC)
commit 1ca1f38a730bc97e05c2ba7de710cbaf25b9adf5
Author: Christian Hergert <chergert redhat com>
Date: Thu Apr 25 17:56:38 2019 -0700
vala-pack: avoid some warnings
.../vala-pack/lang-server/ide-vala-code-context.vala | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/src/plugins/vala-pack/lang-server/ide-vala-code-context.vala
b/src/plugins/vala-pack/lang-server/ide-vala-code-context.vala
index 2466a94b6..77d6fae2c 100644
--- a/src/plugins/vala-pack/lang-server/ide-vala-code-context.vala
+++ b/src/plugins/vala-pack/lang-server/ide-vala-code-context.vala
@@ -147,14 +147,16 @@ namespace Ide
};
public void parse_arguments (string[] args) {
- critical ("args: %s", string.joinv (" ", args));
- try {
- var opt_context = new OptionContext ();
- opt_context.add_main_entries (options, null);
- opt_context.set_ignore_unknown_options (true);
- opt_context.parse (ref args);
- } catch (OptionError e) {
- GLib.debug ("%s", e.message);
+ if (args != null) {
+ stderr.printf ("gnome-builder-vala: %s\n", string.joinv (" ", args));
+ try {
+ var opt_context = new OptionContext ();
+ opt_context.add_main_entries (options, null);
+ opt_context.set_ignore_unknown_options (true);
+ opt_context.parse (ref args);
+ } catch (OptionError e) {
+ GLib.debug ("%s", e.message);
+ }
}
this.assert = !disable_assert;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]