From 1423ad24c0dd76dbd80b2bbfb046c408c72d67ec Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 15 Feb 2019 17:19:33 +0100 Subject: [PATCH] wifi/iwd: fix compiler warning about pointer cast in powered_changed() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../src/devices/wifi/nm-device-iwd.c: In function ‘powered_changed’: ../src/devices/wifi/nm-device-iwd.c:2336:15: warning: assignment from incompatible pointer type [enabled by default] interface = g_object_ref (priv->dbus_device_proxy); ^ --- src/devices/wifi/nm-device-iwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/wifi/nm-device-iwd.c b/src/devices/wifi/nm-device-iwd.c index 68116ef65e..0420f8bcce 100644 --- a/src/devices/wifi/nm-device-iwd.c +++ b/src/devices/wifi/nm-device-iwd.c @@ -2333,7 +2333,7 @@ powered_changed (NMDeviceIwd *self, gboolean new_powered) value = g_dbus_proxy_get_cached_property (priv->dbus_device_proxy, "State"); if (value) { g_variant_unref (value); - interface = g_object_ref (priv->dbus_device_proxy); + interface = g_object_ref (G_DBUS_INTERFACE (priv->dbus_device_proxy)); } else { _LOGE (LOGD_WIFI, "Interface %s not found on obj %s", NM_IWD_STATION_INTERFACE,