[MM][PATCH] mm-glib: use correct enum type
- From: Yunlian Jiang <yunlian google com>
- To: networkmanager-list gnome org
- Cc: aleksander lanedo com
- Subject: [MM][PATCH] mm-glib: use correct enum type
- Date: Fri, 26 Apr 2013 22:21:43 -0700
This patch fixes mismatched enum type for a function parameter, which
fixes the following clang warning:
mm-manager.c:112:65: error: implicit conversion from enumeration type
'GDBusObjectManagerClientFlags' to different enumeration type 'GDBusProxyFlags'
[-Werror,-Wenum-conversion]
flags,
^~~~~
1 error generated.
Bug reported on https://code.google.com/p/chromium/issues/detail?id=235989
diff --git a/libmm-glib/mm-manager.c b/libmm-glib/mm-manager.c
index 46dd8ce..efea9b0 100644
--- a/libmm-glib/mm-manager.c
+++ b/libmm-glib/mm-manager.c
@@ -93,7 +93,7 @@ ensure_modem_manager1_proxy (MMManager *self,
{
gchar *name = NULL;
gchar *object_path = NULL;
- GDBusObjectManagerClientFlags flags = G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE;
+ GDBusProxyFlags flags = G_DBUS_PROXY_FLAGS_NONE;
GDBusConnection *connection = NULL;
if (self->priv->manager_iface_proxy)
--
1.8.2.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]