[dia] [scan-build] Dead assignment



commit 0904d48bda9f15fe4e728bd24ff42d3f39e96505
Author: Hans Breuer <hans breuer org>
Date:   Wed Dec 30 14:44:48 2009 +0100

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

 objects/custom_lines/line_info.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/objects/custom_lines/line_info.c b/objects/custom_lines/line_info.c
index 6708d0d..2949e75 100644
--- a/objects/custom_lines/line_info.c
+++ b/objects/custom_lines/line_info.c
@@ -319,12 +319,12 @@ LineInfo* line_info_clone(LineInfo* info)
   return( res );
 }
 
-LineInfo* line_info_load_and_apply_from_xmlfile(const gchar *filename, LineInfo* info)
+LineInfo* 
+line_info_load_and_apply_from_xmlfile(const gchar *filename, LineInfo* info)
 {
   xmlDocPtr doc = xmlDoParseFile(filename);
   xmlNodePtr node, root;
   xmlChar *tmp;
-  int i;
 
   if (!doc) {
     g_warning("parse error for %s", filename);
@@ -336,7 +336,6 @@ LineInfo* line_info_load_and_apply_from_xmlfile(const gchar *filename, LineInfo*
   if (!root) return NULL;
   if (xmlIsBlankNode(root)) return NULL;
 
-  i = 0;
   for (node = root->xmlChildrenNode; node != NULL; node = node->next) {
     if (xmlIsBlankNode(node))
       continue;



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