summaryrefslogtreecommitdiff
path: root/none
diff options
context:
space:
mode:
authorbart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9>2008-05-12 16:48:25 +0000
committerbart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9>2008-05-12 16:48:25 +0000
commit285ae1c9c33cbbc1526c6419012d2cb5017e965f (patch)
treeba259a7ea8acd9735416bc5cfde78c2baa84d0ad /none
parent416b206ee93d5e2848f66a4d86ffb654956ee2b8 (diff)
Fixed compiler warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8050 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'none')
-rw-r--r--none/tests/x86/bug152818-x86.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/none/tests/x86/bug152818-x86.c b/none/tests/x86/bug152818-x86.c
index 4df0c1fd..9fbe0e90 100644
--- a/none/tests/x86/bug152818-x86.c
+++ b/none/tests/x86/bug152818-x86.c
@@ -93,6 +93,12 @@ int main ()
unsigned int eax = 0x12348765;
unsigned int esi;
const char * i_name = NULL;
+ unsigned int resulting_eflags;
+ unsigned int resulting_eax;
+ unsigned int resulting_esi;
+ int len;
+ int df;
+
switch (insn)
{
case 0: //b
@@ -117,12 +123,12 @@ int main ()
pp_eflags ((eflags >> 8) & 0xFF); // scratching off AH
printf ("REP %s (EAX = %08X, EFLAGS = %s) => ", i_name, eax, sz_eflags);
- unsigned int resulting_eflags = 0;
- unsigned int resulting_eax = 0;
- unsigned int resulting_esi;
+ resulting_eflags = 0;
+ resulting_eax = 0;
+
+ len = lens[idx];
+ df = (idx >= (sizeof(lens)/sizeof(lens[0]))/2);
- int len = lens[idx];
- int df = (idx >= (sizeof(lens)/sizeof(lens[0]))/2);
switch (insn)
{
case 0: //b