From: Julian Seward Date: Sat, 1 Nov 2008 23:54:45 +0000 (+0000) Subject: Fixes for compilation warnings from the apparently very strict X-Git-Tag: svn/VALGRIND_3_4_1^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=273c9aee017ef15186990640ef284d844a5ac5fe;p=thirdparty%2Fvalgrind.git Fixes for compilation warnings from the apparently very strict gcc-4.3.2 shipped with Ubuntu 8.10. git-svn-id: svn://svn.valgrind.org/vex/trunk@1868 --- diff --git a/VEX/priv/ir/irdefs.c b/VEX/priv/ir/irdefs.c index c46e3ed9bb..a09e08c84b 100644 --- a/VEX/priv/ir/irdefs.c +++ b/VEX/priv/ir/irdefs.c @@ -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)"); } }