Commit eeeac3f3e3398124a0f2a118358a91289a30b8e0

Authored by bellard
1 parent 27524dc3

removed warning


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3607 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 2 deletions
linux-user/syscall.c
@@ -2319,7 +2319,7 @@ static abi_long write_ldt(CPUX86State *env, @@ -2319,7 +2319,7 @@ static abi_long write_ldt(CPUX86State *env,
2319 if (!ldt_table) 2319 if (!ldt_table)
2320 return -TARGET_ENOMEM; 2320 return -TARGET_ENOMEM;
2321 memset(ldt_table, 0, TARGET_LDT_ENTRIES * TARGET_LDT_ENTRY_SIZE); 2321 memset(ldt_table, 0, TARGET_LDT_ENTRIES * TARGET_LDT_ENTRY_SIZE);
2322 - env->ldt.base = h2g(ldt_table); 2322 + env->ldt.base = h2g((unsigned long)ldt_table);
2323 env->ldt.limit = 0xffff; 2323 env->ldt.limit = 0xffff;
2324 } 2324 }
2325 2325
@@ -4268,7 +4268,6 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, @@ -4268,7 +4268,6 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
4268 case TARGET_NR_getdents: 4268 case TARGET_NR_getdents:
4269 #if TARGET_ABI_BITS != 32 4269 #if TARGET_ABI_BITS != 32
4270 goto unimplemented; 4270 goto unimplemented;
4271 -#warning not supported  
4272 #elif TARGET_ABI_BITS == 32 && HOST_LONG_BITS == 64 4271 #elif TARGET_ABI_BITS == 32 && HOST_LONG_BITS == 64
4273 { 4272 {
4274 struct target_dirent *target_dirp; 4273 struct target_dirent *target_dirp;