summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-icon-dnd.c
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-10-25 18:34:52 +0200
committerJasmine Hassan <[email protected]>2012-12-22 05:24:16 +0200
commit558280660418ef9e27e36ddd0619225c691e44b7 (patch)
tree0bc0a5f4383d989f02ae856d88451cd47203f83c /libcaja-private/caja-icon-dnd.c
parentab206cf53ff4380c63f031101c36b6bc0c7a8489 (diff)
downloadcaja-558280660418ef9e27e36ddd0619225c691e44b7.tar.bz2
caja-558280660418ef9e27e36ddd0619225c691e44b7.tar.xz
[all] silence warnings from GCC 4.6
GCC 4.6 introduced a new warning about variables declared and initialized, but not really used in the function body. Remove all of these occurrences to build cleanly. http://git.gnome.org/browse/nautilus/commit/?id=d4230de8667764e02dbb966b5d806ff78ced2fd5
Diffstat (limited to 'libcaja-private/caja-icon-dnd.c')
-rw-r--r--libcaja-private/caja-icon-dnd.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/libcaja-private/caja-icon-dnd.c b/libcaja-private/caja-icon-dnd.c
index fd28b4e2..376490dc 100644
--- a/libcaja-private/caja-icon-dnd.c
+++ b/libcaja-private/caja-icon-dnd.c
@@ -1577,7 +1577,6 @@ caja_icon_dnd_begin_drag (CajaIconContainer *container,
int start_y)
{
CajaIconDndInfo *dnd_info;
- GdkDragContext *context;
g_return_if_fail (CAJA_IS_ICON_CONTAINER (container));
g_return_if_fail (event != NULL);
@@ -1594,11 +1593,11 @@ caja_icon_dnd_begin_drag (CajaIconContainer *container,
gtk_adjustment_get_value (gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (container)));
/* start the drag */
- context = gtk_drag_begin (GTK_WIDGET (container),
- dnd_info->drag_info.target_list,
- actions,
- button,
- (GdkEvent *) event);
+ gtk_drag_begin (GTK_WIDGET (container),
+ dnd_info->drag_info.target_list,
+ actions,
+ button,
+ (GdkEvent *) event);
}
static gboolean