projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a59d69d
)
linux-user: fix compiler error on nptl
author
Riku Voipio
<riku.voipio@nokia.com>
Fri, 26 Nov 2010 14:21:34 +0000
(16:21 +0200)
committer
Riku 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
patch
|
blob
|
history
diff --git
a/linux-user/syscall.c
b/linux-user/syscall.c
index 070241bb8a965a992f7f0752eab20a86210510fb..c3e870654dfb3890742010515028399457bab5f1 100644
(file)
--- 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() */