[gvfs] metatree: Don't g_warning if the running gvfs daemon is older
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] metatree: Don't g_warning if the running gvfs daemon is older
- Date: Mon, 8 Jun 2015 09:44:09 +0000 (UTC)
commit 55761f269eb43f289cd005ff54d8b808301762ad
Author: Alexander Larsson <alexl redhat com>
Date: Mon Jun 8 11:43:08 2015 +0200
metatree: Don't g_warning if the running gvfs daemon is older
This was breaking the build for me due to warnings-as-errors
metadata/metatree.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/metadata/metatree.c b/metadata/metatree.c
index 59be3df..89942cb 100644
--- a/metadata/metatree.c
+++ b/metadata/metatree.c
@@ -2859,7 +2859,8 @@ get_tree_for_device (MetaLookupCache *cache,
if (error)
{
- g_warning ("Error: %s\n", error->message);
+ if (!g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD))
+ g_warning ("Error: %s\n", error->message);
g_error_free (error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]