Author: sewardj
Date: 2007-11-25 15:40:17 +0000 (Sun, 25 Nov 2007)
New Revision: 7217

Log:
Get rid of compiler warnings.

Modified:
   trunk/exp-omega/tests/scope3.c
   trunk/none/tests/amd64/rcl-amd64.c
   trunk/none/tests/amd64/redundantRexW.c


Modified: trunk/exp-omega/tests/scope3.c
===================================================================
--- trunk/exp-omega/tests/scope3.c      2007-11-25 14:11:38 UTC (rev 7216)
+++ trunk/exp-omega/tests/scope3.c      2007-11-25 15:40:17 UTC (rev 7217)
@@ -2,7 +2,7 @@
 
 static void func1(char *pointer)
 {
-  int dummy = 0;
+  __attribute__((unused)) int dummy = 0;
   return;
 }              /* Line 7 x86-64*/
 

Modified: trunk/none/tests/amd64/rcl-amd64.c
===================================================================
--- trunk/none/tests/amd64/rcl-amd64.c  2007-11-25 14:11:38 UTC (rev 7216)
+++ trunk/none/tests/amd64/rcl-amd64.c  2007-11-25 15:40:17 UTC (rev 7217)
@@ -29,9 +29,8 @@
 
 int main(int argc, char * argv[])
 {
-       register unsigned long a, b, c;
+       register unsigned long a, b;
        int i;
-       int sc;
        if (argc == 2)
                a = atol(argv[1]);
        else

Modified: trunk/none/tests/amd64/redundantRexW.c
===================================================================
--- trunk/none/tests/amd64/redundantRexW.c      2007-11-25 14:11:38 UTC (rev 
7216)
+++ trunk/none/tests/amd64/redundantRexW.c      2007-11-25 15:40:17 UTC (rev 
7217)
@@ -95,10 +95,10 @@
 void after_test ( char* who, XMMRegs* regs, Mem* mem ) {
    XMMRegs rdiff;
    Mem     mdiff;
+   char s[128];
    setup_regs_mem( &rdiff, &mdiff );
    xor_XMMRegs( regs, &rdiff );
    xor_Mem( mem, &mdiff );
-   char s[128];
    sprintf(s, "after \"%s\"", who );
    pp_Mem( s, &mdiff );
    pp_XMMRegs( s, &rdiff );


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to