|
From: <sv...@va...> - 2008-11-01 23:54:52
|
Author: sewardj
Date: 2008-11-01 23:54:45 +0000 (Sat, 01 Nov 2008)
New Revision: 1868
Log:
Fixes for compilation warnings from the apparently very strict
gcc-4.3.2 shipped with Ubuntu 8.10.
Modified:
trunk/priv/ir/irdefs.c
Modified: trunk/priv/ir/irdefs.c
===================================================================
--- trunk/priv/ir/irdefs.c 2008-10-31 21:27:38 UTC (rev 1867)
+++ trunk/priv/ir/irdefs.c 2008-11-01 23:54:45 UTC (rev 1868)
@@ -119,7 +119,7 @@
void ppIROp ( IROp op )
{
- HChar* str;
+ HChar* str = NULL;
IROp base;
switch (op) {
case Iop_Add8 ... Iop_Add64:
@@ -576,10 +576,10 @@
}
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)");
}
}
|