From e53e67e2287b111af25387edf8bff381be3be252 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 27 Jan 2006 17:50:52 +0000 Subject: Some warnings go away --- libc/misc/internals/__uClibc_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/misc/internals') 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 +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 -- cgit v1.2.3