Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2000-08-24 20:25:36 +0400
committerJeff Johnston <jjohnstn@redhat.com>2000-08-24 20:25:36 +0400
commit0888fedd86a3fbd197c26a232d7e039e4606b846 (patch)
tree387c188a5cc3efa53db0e970a2e7a6b8161a2e57 /newlib/libc/locale
parenta334e5ef7267195d7ee285c89e9e4fa4d57347da (diff)
2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
* libc/stdio/stdio.c (__swrite): declare "oldmode" only if it's used later (ifdef __SCLE) * libc/stdio/vfscanf.c (__svfscanf): declare "state" only if it's used later (ifdef MB_CAPABLE) * libc/string/memset.c (memset): removed unused variables "count" and "unaligned_addr" * libc/locale/locale.c (_setlocale_r): declare "lc_ctype" and "last_lc_ctype" only of they're used later (ifdef MB_CAPABLE) * libc/unix/getpwent.c (getpwnam): removed unused variables "uid" and "gid"
Diffstat (limited to 'newlib/libc/locale')
-rw-r--r--newlib/libc/locale/locale.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index 81d6ae2bc..e1f45335a 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -110,9 +110,6 @@ _DEFUN(_setlocale_r, (p, category, locale),
int category _AND
_CONST char *locale)
{
- static char lc_ctype[8] = "C";
- static char last_lc_ctype[8] = "C";
-
#ifndef MB_CAPABLE
if (locale)
{
@@ -123,6 +120,9 @@ _DEFUN(_setlocale_r, (p, category, locale),
}
return "C";
#else
+ static char lc_ctype[8] = "C";
+ static char last_lc_ctype[8] = "C";
+
if (locale)
{
if (category != LC_CTYPE)