[dia] [scan-build] Dead assignment



commit 8362ac9f34cd906aab999bd0204251a56a2f7213
Author: Hans Breuer <hans breuer org>
Date:   Tue Dec 29 20:15:32 2009 +0100

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

 objects/FS/function.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/objects/FS/function.c b/objects/FS/function.c
index 370c39d..4a53a1f 100644
--- a/objects/FS/function.c
+++ b/objects/FS/function.c
@@ -346,12 +346,10 @@ function_update_data(Function *pkg)
 {
   Element *elem = &pkg->element;
   DiaObject *obj = &elem->object;
-  DiaFont *font;
   Point p1;
   real h, w = 0, font_height;
   
   text_calc_boundingbox(pkg->text, NULL) ;
-  font = pkg->text->font ;
   font_height = pkg->text->height ;
   h = elem->corner.y + font_height/FUNCTION_MARGIN_Y;
 



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