[dia] [scan-build] Dead assignment



commit d39196c6e43bffecad8e93a8ffd86366c3ea4dfd
Author: Hans Breuer <hans breuer org>
Date:   Tue Dec 29 18:54:01 2009 +0100

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

 objects/UML/generalization.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/objects/UML/generalization.c b/objects/UML/generalization.c
index 226fb06..80ff36e 100644
--- a/objects/UML/generalization.c
+++ b/objects/UML/generalization.c
@@ -405,7 +405,6 @@ generalization_create(Point *startpoint,
   Generalization *genlz;
   OrthConn *orth;
   DiaObject *obj;
-  PolyBBExtras *extra;
 
   if (genlz_font == NULL) {
     genlz_font = dia_font_new_from_style(DIA_FONT_MONOSPACE, GENERALIZATION_FONTHEIGHT);
@@ -414,7 +413,6 @@ generalization_create(Point *startpoint,
   genlz = g_new0(Generalization, 1);
   orth = &genlz->orth;
   obj = (DiaObject *)genlz;
-  extra = &orth->extra_spacing;
 
   obj->type = &generalization_type;
 



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