qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 14/16] linux-user: fix compiler error on nptl


From: Riku
Subject: [Qemu-devel] [PATCH 14/16] linux-user: fix compiler error on nptl
Date: Fri, 3 Dec 2010 15:36:41 +0200

From: Riku Voipio <address@hidden>

Some compilers detect that new_stack isnt used after dd75d784

Signed-off-by: Riku Voipio <address@hidden>
---
 linux-user/syscall.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 070241b..c3e8706 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -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() */
-- 
1.6.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]