summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/allocatestack.c
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-09-21 14:19:00 -0700
committerAustin Foxley <austinf@cetoncorp.com>2009-09-21 14:19:00 -0700
commitecd7069ac6e33a4734f3c4e6d54cf8a6a374d678 (patch)
tree355c5cff89518c3eed03d7c5a4e3e313ae7d0c78 /libpthread/nptl/allocatestack.c
parent3e3f77cdfc8259861515236857ce023f1fbec580 (diff)
downloaduClibc-alpine-ecd7069ac6e33a4734f3c4e6d54cf8a6a374d678.tar.bz2
uClibc-alpine-ecd7069ac6e33a4734f3c4e6d54cf8a6a374d678.tar.xz
warning fixes
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libpthread/nptl/allocatestack.c')
-rw-r--r--libpthread/nptl/allocatestack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpthread/nptl/allocatestack.c b/libpthread/nptl/allocatestack.c
index 1e35f48aa..f0acf3b3a 100644
--- a/libpthread/nptl/allocatestack.c
+++ b/libpthread/nptl/allocatestack.c
@@ -34,7 +34,7 @@
#ifndef NEED_SEPARATE_REGISTER_STACK
/* Most architectures have exactly one stack pointer. Some have more. */
-# define STACK_VARIABLES void *stackaddr
+# define STACK_VARIABLES void *stackaddr = 0
/* How to pass the values to the 'create_thread' function. */
# define STACK_VARIABLES_ARGS stackaddr
@@ -53,7 +53,7 @@
/* We need two stacks. The kernel will place them but we have to tell
the kernel about the size of the reserved address space. */
-# define STACK_VARIABLES void *stackaddr; size_t stacksize
+# define STACK_VARIABLES void *stackaddr = 0; size_t stacksize
/* How to pass the values to the 'create_thread' function. */
# define STACK_VARIABLES_ARGS stackaddr, stacksize
@@ -388,7 +388,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
/* Allocate some anonymous memory. If possible use the cache. */
size_t guardsize;
size_t reqsize;
- void *mem;
+ void *mem = 0;
const int prot = (PROT_READ | PROT_WRITE);
#if COLORING_INCREMENT != 0