itbra / stringencoders

Automatically exported from code.google.com/p/stringencoders
Other
0 stars 1 forks source link

code does not compile (test cases) with -Werror=unused-but-set-variable (patch to fix it) #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Index: test/speedtest.c
===================================================================
--- test/speedtest.c    (revision 241)
+++ test/speedtest.c    (working copy)
@@ -37,7 +37,6 @@
     int i, j;
     clock_t c0, c1;
     char teststr1[SZ];
-    char teststr2[SZ];

     /*
       this contains the message sizes we'll test on
@@ -47,7 +46,6 @@

     for (i = 0; i < (int)sizeof(teststr1); ++i) {
         teststr1[i] = 'A' + i % 26;
-        teststr2[i] = 'A' + i % 26;
     }

     // over allocate result buffers

Original issue reported on code.google.com by rakesh.p...@gmail.com on 8 Feb 2012 at 12:07

GoogleCodeExporter commented 9 years ago
Thanks... I'm pulling down gcc 4.7 beta to make sure is passes cleanly

Original comment by nickg@client9.com on 24 Feb 2012 at 2:52

GoogleCodeExporter commented 9 years ago
fixed in revision 250.

thank you!

Original comment by nickg@client9.com on 24 Feb 2012 at 5:15

GoogleCodeExporter commented 9 years ago
Thank you for applying the patch :-)

Original comment by rakesh.p...@gmail.com on 24 Feb 2012 at 8:19