summaryrefslogtreecommitdiff
path: root/desktop/tree.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-07-26 21:30:38 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-07-26 21:30:38 +0000
commit63cc03a5dcfe2302eb73031a46d6e4a0bb56b759 (patch)
treef7437bbf34a172b1da7d7ec5fc567e36f1d5dee7 /desktop/tree.c
parent16b92d1613e245919743be5f168abe77712ec84b (diff)
downloadnetsurf-63cc03a5dcfe2302eb73031a46d6e4a0bb56b759.tar.gz
netsurf-63cc03a5dcfe2302eb73031a46d6e4a0bb56b759.tar.bz2
Fix GCC 4.6 warnings in core
svn path=/trunk/netsurf/; revision=12629
Diffstat (limited to 'desktop/tree.c')
-rw-r--r--desktop/tree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/tree.c b/desktop/tree.c
index f8105bb19..6c8071d90 100644
--- a/desktop/tree.c
+++ b/desktop/tree.c
@@ -476,11 +476,10 @@ static void tree_recalculate_node_sizes(struct tree *tree, struct node *node,
bool recalculate_sizes)
{
struct node_element *element;
- int width, height;
+ int height;
assert(node != NULL);
- width = node->box.width;
height = node->box.height;
node->box.width = 0;
node->box.height = 0;