[pisa-src] r1184 - trunk/performance/pisaperf.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Thu, 15 Oct 2009 17:32:20 +0200

Author: tjansen
Date: Thu Oct 15 17:32:20 2009
New Revision: 1184

Log:
Fixed two compiler warnings in performance/pisaperf.c

pisaperf.c: In function ‘pisa_perf_write_benchmark’:
pisaperf.c:191: warning: unused variable ‘i’
pisaperf.c: In function ‘pisa_perf_close’:
pisaperf.c:237: warning: label ‘out_err’ defined but not used

Modified:
   trunk/performance/pisaperf.c

Modified: trunk/performance/pisaperf.c
==============================================================================
--- trunk/performance/pisaperf.c        Thu Oct 15 17:18:24 2009        (r1183)
+++ trunk/performance/pisaperf.c        Thu Oct 15 17:32:20 2009        (r1184)
@@ -188,7 +188,7 @@
  * \return Returns error code. 0 = Success, 1 = Error.
  */
 int pisa_perf_write_benchmark(pisa_perf_set * in_perf_set, int slot){
-       int err = 0, i = 0;
+       int err = 0;
        PISA_IFEL(!in_perf_set, -1, "Performance set is empty\n");
        char buffer[30];
        memset(buffer, 0, 30);
@@ -234,7 +234,6 @@
                        err = 1;
                }
        }
-out_err:
        return err;
 }
 

Other related posts:

  • » [pisa-src] r1184 - trunk/performance/pisaperf.c - Thomas Jansen