summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--desktop/tree.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e407d1135..17f5cce13 100644
--- a/Makefile
+++ b/Makefile
@@ -162,6 +162,10 @@ else
endif
endif
+# Hackiness for scan-build
+export CCC_CC := $(CC)
+CC := /home/jmb/llvm/tools/clang/utils/ccc-analyzer
+
OBJROOT = build-$(HOST)-$(TARGET)$(SUBTARGET)
# ----------------------------------------------------------------------------
diff --git a/desktop/tree.c b/desktop/tree.c
index 83b56079f..ee0cfc3da 100644
--- a/desktop/tree.c
+++ b/desktop/tree.c
@@ -166,11 +166,10 @@ void tree_handle_node_element_changed(struct tree *tree, struct node_element *el
*/
void tree_recalculate_node(struct tree *tree, struct node *node, bool recalculate_sizes) {
struct node_element *element;
- int width, height;
+ int height;
assert(node);
- width = node->box.width;
height = node->box.height;
node->box.width = 0;
node->box.height = 0;
@@ -969,7 +968,7 @@ void tree_delete_node_internal(struct tree *tree, struct node *node, bool siblin
urldb_delete_cookie(
domain_t,
path_t,
- e->text);
+ name_t);
}
}
}