From ecd7069ac6e33a4734f3c4e6d54cf8a6a374d678 Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Mon, 21 Sep 2009 14:19:00 -0700 Subject: warning fixes Signed-off-by: Austin Foxley --- libpthread/nptl/allocatestack.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libpthread/nptl/allocatestack.c') 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 -- cgit v1.2.3