summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-entry.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-entry.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-entry.c')
-rw-r--r--libcaja-private/caja-entry.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libcaja-private/caja-entry.c b/libcaja-private/caja-entry.c
index fb9ac38c..8f5f9d79 100644
--- a/libcaja-private/caja-entry.c
+++ b/libcaja-private/caja-entry.c
@@ -66,9 +66,6 @@ static GtkEditableInterface *parent_editable_interface = NULL;
static void
caja_entry_init (CajaEntry *entry)
{
- GtkWidget *widget;
-
- widget = GTK_WIDGET (entry);
entry->details = g_new0 (CajaEntryDetails, 1);
entry->details->user_edit = TRUE;
@@ -172,10 +169,8 @@ caja_entry_motion_notify (GtkWidget *widget, GdkEventMotion *event)
int result;
gboolean old_had, new_had;
int old_start, old_end, new_start, new_end;
- CajaEntry *entry;
GtkEditable *editable;
- entry = CAJA_ENTRY (widget);
editable = GTK_EDITABLE (widget);
old_had = gtk_editable_get_selection_bounds (editable, &old_start, &old_end);