summaryrefslogtreecommitdiff
path: root/libc/misc/locale
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-24 10:29:47 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-26 20:23:29 +0200
commitb5d946a333f8faff998160c4da499c3c25a2d3ac (patch)
treee49110206c0665ba82ff49f213b80f47be220c64 /libc/misc/locale
parent29ff9055c80efe77a7130767a9fcb3ab8c67e8ce (diff)
locale: cleanup support
Enable locale application to be build when utils are build. Remove useless compile and link warnings. Default to minimal locale builds. Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Diffstat (limited to 'libc/misc/locale')
-rw-r--r--libc/misc/locale/locale.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/libc/misc/locale/locale.c b/libc/misc/locale/locale.c
index f868ac022..e38792b51 100644
--- a/libc/misc/locale/locale.c
+++ b/libc/misc/locale/locale.c
@@ -58,9 +58,6 @@
#include <ctype.h>
#include <stdio.h>
-#undef link_warning
-#define link_warning(A,B)
-
#undef __LOCALE_C_ONLY
#ifndef __UCLIBC_HAS_LOCALE__
#define __LOCALE_C_ONLY
@@ -118,8 +115,6 @@ extern void _locale_init_l(__locale_t base) attribute_hidden;
#ifdef __LOCALE_C_ONLY
-link_warning(setlocale,"REMINDER: The 'setlocale' function supports only C|POSIX locales.")
-
static const char C_string[] = "C";
char *setlocale(int category, register const char *locale)
@@ -135,10 +130,6 @@ char *setlocale(int category, register const char *locale)
#else /* ---------------------------------------------- __LOCALE_C_ONLY */
-#ifdef __UCLIBC_HAS_THREADS__
-link_warning(setlocale,"REMINDER: The 'setlocale' function is _not_ threadsafe except for simple queries.")
-#endif
-
#if !defined(__LOCALE_DATA_NUM_LOCALES) || (__LOCALE_DATA_NUM_LOCALES <= 1)
#error locales enabled, but not data other than for C locale!
#endif
@@ -263,8 +254,6 @@ char *setlocale(int category, const char *locale)
#ifdef __LOCALE_C_ONLY
-link_warning(localeconv,"REMINDER: The 'localeconv' function is hardwired for C/POSIX locale only.")
-
static struct lconv the_lconv;
static const char decpt[] = ".";
@@ -1002,8 +991,6 @@ libc_hidden_def(__XL_NPP(nl_langinfo))
/**********************************************************************/
#ifdef L_newlocale
-#warning mask defines for extra locale categories
-
static const char posix[] = "POSIX";
static const char utf8[] = "UTF-8";