summaryrefslogtreecommitdiff
path: root/libc/misc/internals
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-27 17:50:52 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-27 17:50:52 +0000
commite53e67e2287b111af25387edf8bff381be3be252 (patch)
tree693096dd892afafaa6bef9feef8cb07485038cf8 /libc/misc/internals
parentddbbc1dfe53a6d7de69d648a5073c8f812832b11 (diff)
Some warnings go away
Diffstat (limited to 'libc/misc/internals')
-rw-r--r--libc/misc/internals/__uClibc_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index 32071c50c..73aafa18b 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -57,6 +57,7 @@ void *__libc_stack_end=NULL;
/* Only exported for architectures that don't store the stack guard canary
* in thread local area. */
#include <stdint.h>
+uintptr_t stack_chk_guard;
/* for gcc-4.1 non-TLS */
uintptr_t __stack_chk_guard attribute_relro;
/* for gcc-3.x + Etoh ssp */
@@ -186,7 +187,7 @@ void __uClibc_init(void)
#ifndef SHARED
# ifdef __UCLIBC_HAS_SSP__
/* Set up the stack checker's canary. */
- uintptr_t stack_chk_guard = _dl_setup_stack_chk_guard();
+ stack_chk_guard = _dl_setup_stack_chk_guard();
# ifdef THREAD_SET_STACK_GUARD
THREAD_SET_STACK_GUARD (stack_chk_guard);
# else