]> git.proxmox.com Git - qemu.git/commitdiff
linux-user: fix compiler error on nptl
authorRiku Voipio <riku.voipio@nokia.com>
Fri, 26 Nov 2010 14:21:34 +0000 (16:21 +0200)
committerRiku Voipio <riku.voipio@nokia.com>
Fri, 3 Dec 2010 13:09:39 +0000 (15:09 +0200)
Some compilers detect that new_stack isnt used after dd75d784

Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
linux-user/syscall.c

index 070241bb8a965a992f7f0752eab20a86210510fb..c3e870654dfb3890742010515028399457bab5f1 100644 (file)
@@ -3635,11 +3635,12 @@ static int do_fork(CPUState *env, unsigned int flags, abi_ulong newsp,
 {
     int ret;
     TaskState *ts;
-    uint8_t *new_stack;
     CPUState *new_env;
 #if defined(CONFIG_USE_NPTL)
     unsigned int nptl_flags;
     sigset_t sigmask;
+#else
+    uint8_t *new_stack;
 #endif
 
     /* Emulate vfork() with fork() */