[dia] [scan-build] Dead increment (harmless)
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [scan-build] Dead increment (harmless)
- Date: Fri, 5 Sep 2014 15:48:51 +0000 (UTC)
commit 2943335d28fbd11f98eedfeeec825dc455d5ed11
Author: Hans Breuer <hans breuer org>
Date: Fri Sep 5 14:54:35 2014 +0200
[scan-build] Dead increment (harmless)
Value stored to 'h' is never read
File: /home/hb/from-git/dia/objects/UML/node.c
Line: 304
-> removed
Value stored to 'y' is never read
File: /home/hb/from-git/dia/objects/UML/object.c
Line: 314
-> removed
objects/UML/node.c | 1 -
objects/UML/object.c | 1 -
2 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/objects/UML/node.c b/objects/UML/node.c
index e9111f9..adc07d1 100644
--- a/objects/UML/node.c
+++ b/objects/UML/node.c
@@ -301,7 +301,6 @@ node_update_data(Node *node)
p1.x = elem->corner.x + NODE_TEXT_MARGIN;
p1.y = h + node->name->ascent; /* position of text */
text_set_position(node->name, &p1);
- h += node->name->height * node->name->numlines;
elem->width = MAX(elem->width, node->name->max_width + 2*NODE_TEXT_MARGIN);
elem->height = MAX(elem->height, node->name->height * node->name->numlines + 2*NODE_TEXT_MARGIN);
diff --git a/objects/UML/object.c b/objects/UML/object.c
index 6673d1f..2ea3830 100644
--- a/objects/UML/object.c
+++ b/objects/UML/object.c
@@ -311,7 +311,6 @@ objet_draw(Objet *ob, DiaRenderer *renderer)
p1.y += OBJET_MARGIN_M(ob);
p2.x -= OBJET_MARGIN_M(ob);
p2.y += OBJET_MARGIN_M(ob);
- y += OBJET_MARGIN_M(ob);
}
renderer_ops->draw_rect(renderer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]