[gnome-builder] code: ignore various warnings in common path
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] code: ignore various warnings in common path
- Date: Tue, 22 Jan 2019 07:41:53 +0000 (UTC)
commit f5592c7df68cced13cc3e88eb11aeb8955e7a427
Author: Christian Hergert <chergert redhat com>
Date: Mon Jan 21 23:41:35 2019 -0800
code: ignore various warnings in common path
src/libide/code/ide-file-settings.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/code/ide-file-settings.c b/src/libide/code/ide-file-settings.c
index 97aa85577..10ca1fcca 100644
--- a/src/libide/code/ide-file-settings.c
+++ b/src/libide/code/ide-file-settings.c
@@ -459,7 +459,10 @@ ide_file_settings__init_cb (GObject *object,
g_assert (G_IS_ASYNC_INITABLE (initable));
if (!g_async_initable_init_finish (initable, result, &error))
- g_warning ("%s", error->message);
+ {
+ if (!ide_error_ignore (error))
+ g_warning ("%s", error->message);
+ }
if (--priv->unsettled_count == 0)
g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_SETTLED]);
@@ -519,7 +522,10 @@ ide_file_settings_new (IdeObject *parent,
g_autoptr(GError) error = NULL;
if (!g_initable_init (G_INITABLE (child), NULL, &error))
- g_warning ("%s", error->message);
+ {
+ if (!ide_error_ignore (error))
+ g_warning ("%s", error->message);
+ }
}
else if (G_IS_ASYNC_INITABLE (child))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]