]> granicus.if.org Git - curl/commitdiff
lib599.c: fix compiler warning
authorYang Tse <yangsita@gmail.com>
Wed, 4 Apr 2012 15:22:46 +0000 (17:22 +0200)
committerYang Tse <yangsita@gmail.com>
Wed, 4 Apr 2012 15:24:29 +0000 (17:24 +0200)
tests/libtest/lib599.c

index 354e88704e57ffbb56a7d3b2717b7252eb70a8d6..6b092677a0f03814fba8966ec8a118760722a2cf 100644 (file)
@@ -23,8 +23,6 @@
 
 #include "memdebug.h"
 
-static double dl;
-
 static int progress_callback(void *clientp, double dltotal,
                              double dlnow, double ultotal, double ulnow)
 {
@@ -32,8 +30,6 @@ static int progress_callback(void *clientp, double dltotal,
   (void)ulnow;
   (void)ultotal;
 
-  dl = dltotal;
-
   if((dltotal > 0.0) && (dlnow > dltotal)) {
     /* this should not happen with test case 599 */
     printf("%.0f > %.0f !!\n", dltotal, dlnow);