From ab5a9fda3dda8698153b6e52f81909f5620c55f8 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 12 Aug 2020 16:33:56 -0400 Subject: remove unused errno --- src/nonstd/__libc_per_thread.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/nonstd/__libc_per_thread.c b/src/nonstd/__libc_per_thread.c index ed399480..d487dcad 100644 --- a/src/nonstd/__libc_per_thread.c +++ b/src/nonstd/__libc_per_thread.c @@ -4,15 +4,10 @@ void *__libc_per_thread(LIBC_INTERNAL variable) { - THREAD_LOCAL int errno; THREAD_LOCAL struct __locale_t locale; - switch (variable) { - case THREAD_LOCALE: + if (variable == THREAD_LOCALE) { return &locale; - - default: - break; } return (void*)0; -- cgit v1.2.1