[anjuta] file-manager: Fix compile warning.
- From: Carl-Anton Ingmarsson <carlantoni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] file-manager: Fix compile warning.
- Date: Sat, 12 Jan 2013 19:17:00 +0000 (UTC)
commit cfc9648c4b35da7fb3a08d7cddd11e6a32f670c1
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Sat Jan 12 20:15:51 2013 +0100
file-manager: Fix compile warning.
Cast the IAnjutaVcs** parameter to void** to keep GCC from complaining.
plugins/file-manager/file-model.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/file-manager/file-model.c b/plugins/file-manager/file-model.c
index a30c1bf..7d5c817 100644
--- a/plugins/file-manager/file-model.c
+++ b/plugins/file-manager/file-model.c
@@ -798,9 +798,9 @@ file_model_set_ivcs (FileModel* model, IAnjutaVcs *ivcs)
FileModelPrivate *priv = FILE_MODEL_GET_PRIVATE (model);
if (priv->ivcs)
- g_object_remove_weak_pointer (G_OBJECT (priv->ivcs), &priv->ivcs);
+ g_object_remove_weak_pointer (G_OBJECT (priv->ivcs), (void**)&priv->ivcs);
priv->ivcs = ivcs;
if (priv->ivcs)
- g_object_add_weak_pointer (G_OBJECT (priv->ivcs), &priv->ivcs);
+ g_object_add_weak_pointer (G_OBJECT (priv->ivcs), (void**)&priv->ivcs);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]