[dia] [scan-build] Dead assignment



commit a3925775aa5df54ebef03cf46a341f32cf5368a1
Author: Hans Breuer <hans breuer org>
Date:   Wed Dec 30 14:07:25 2009 +0100

    [scan-build] Dead assignment
    
    Value stored to 'pos' is never read

 objects/GRAFCET/condition.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/objects/GRAFCET/condition.c b/objects/GRAFCET/condition.c
index c7352e0..c1028ff 100644
--- a/objects/GRAFCET/condition.c
+++ b/objects/GRAFCET/condition.c
@@ -329,7 +329,7 @@ condition_create(Point *startpoint,
   Connection *conn;
   LineBBExtras *extra;
   DiaObject *obj;
-  Point defaultlen  = {0.0,CONDITION_ARROW_SIZE}, pos;
+  Point defaultlen  = {0.0,CONDITION_ARROW_SIZE};
 
   DiaFont *default_font; 
   real default_fontheight;
@@ -349,8 +349,6 @@ condition_create(Point *startpoint,
 
   connection_init(conn, 2,0);
 
-  pos = conn->endpoints[1];
-
   default_font = NULL;
   attributes_get_default_font(&default_font,&default_fontheight);
   fg_color = attributes_get_foreground();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]