]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fixes for compilation warnings from the apparently very strict
authorJulian Seward <jseward@acm.org>
Sat, 1 Nov 2008 23:54:45 +0000 (23:54 +0000)
committerJulian Seward <jseward@acm.org>
Sat, 1 Nov 2008 23:54:45 +0000 (23:54 +0000)
gcc-4.3.2 shipped with Ubuntu 8.10.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1868

VEX/priv/ir/irdefs.c

index c46e3ed9bb3d51cc6041738748d996cb96bab965..a09e08c84badc84f78132e4a83bf24465d9a1a4f 100644 (file)
@@ -119,7 +119,7 @@ void ppIRTemp ( IRTemp tmp )
 
 void ppIROp ( IROp op )
 {
-   HChar* str; 
+   HChar* str = NULL
    IROp   base;
    switch (op) {
       case Iop_Add8 ... Iop_Add64:
@@ -576,10 +576,10 @@ void ppIROp ( IROp op )
    }
   
    switch (op - base) {
-      case 0: vex_printf(str); vex_printf("8"); break;
-      case 1: vex_printf(str); vex_printf("16"); break;
-      case 2: vex_printf(str); vex_printf("32"); break;
-      case 3: vex_printf(str); vex_printf("64"); break;
+      case 0: vex_printf("%s",str); vex_printf("8"); break;
+      case 1: vex_printf("%s",str); vex_printf("16"); break;
+      case 2: vex_printf("%s",str); vex_printf("32"); break;
+      case 3: vex_printf("%s",str); vex_printf("64"); break;
       default: vpanic("ppIROp(2)");
    }
 }