From: Martin Baute Date: Tue, 8 Mar 2016 06:09:29 +0000 (+0100) Subject: Local helpers made static, silencing compiler warnings. X-Git-Url: https://pd.if.org/git/?p=pdclib;a=commitdiff_plain;h=14bc57c5c4d93263e08fe50e67eb61815cd0592f Local helpers made static, silencing compiler warnings. --- diff --git a/functions/uchar/_PDCLIB_c32srtombs.c b/functions/uchar/_PDCLIB_c32srtombs.c index 6e30f89..eda8ab5 100644 --- a/functions/uchar/_PDCLIB_c32srtombs.c +++ b/functions/uchar/_PDCLIB_c32srtombs.c @@ -15,7 +15,7 @@ #include <_PDCLIB_encoding.h> #include <_PDCLIB_locale.h> -size_t _PDCLIB_c32srtombs_l( +static size_t _PDCLIB_c32srtombs_l( char *restrict dst, const char32_t **restrict src, size_t len, @@ -24,7 +24,7 @@ size_t _PDCLIB_c32srtombs_l( { char *restrict *restrict dstp = dst ? &dst : NULL; len = dst ? len : SIZE_MAX; - + size_t srclen = _PDCLIB_c32slen(*src); size_t dstlen = len; diff --git a/functions/uchar/_PDCLIB_mbsrtoc32s.c b/functions/uchar/_PDCLIB_mbsrtoc32s.c index 394f3eb..0e672e6 100644 --- a/functions/uchar/_PDCLIB_mbsrtoc32s.c +++ b/functions/uchar/_PDCLIB_mbsrtoc32s.c @@ -16,7 +16,7 @@ #include <_PDCLIB_encoding.h> #include <_PDCLIB_locale.h> -size_t _PDCLIB_mbsrtoc32s_l +static size_t _PDCLIB_mbsrtoc32s_l ( char32_t *restrict dst, const char **restrict src, diff --git a/functions/wchar/mbrtowc.c b/functions/wchar/mbrtowc.c index 91fefeb..b2912ba 100644 --- a/functions/wchar/mbrtowc.c +++ b/functions/wchar/mbrtowc.c @@ -16,7 +16,7 @@ #include <_PDCLIB_encoding.h> #include <_PDCLIB_locale.h> -size_t mbrtowc_l( +static size_t mbrtowc_l( wchar_t *restrict pwc, const char *restrict s, size_t n, diff --git a/functions/wchar/mbsinit.c b/functions/wchar/mbsinit.c index 145edd8..0734711 100644 --- a/functions/wchar/mbsinit.c +++ b/functions/wchar/mbsinit.c @@ -9,7 +9,7 @@ #include <_PDCLIB_encoding.h> #include <_PDCLIB_locale.h> -int _PDCLIB_mbsinit_l( const mbstate_t *ps, locale_t l ) +static int _PDCLIB_mbsinit_l( const mbstate_t *ps, locale_t l ) { if( ps ) { return ps->_Surrogate == 0 diff --git a/functions/wchar/wcrtomb.c b/functions/wchar/wcrtomb.c index 0372471..79a1433 100644 --- a/functions/wchar/wcrtomb.c +++ b/functions/wchar/wcrtomb.c @@ -16,7 +16,7 @@ #include <_PDCLIB_encoding.h> #include <_PDCLIB_locale.h> -size_t wcrtomb_l( +static size_t wcrtomb_l( char *restrict s, wchar_t wc, mbstate_t *restrict ps, diff --git a/platform/posix/functions/_PDCLIB/_PDCLIB_stdinit.c b/platform/posix/functions/_PDCLIB/_PDCLIB_stdinit.c index 4a1da0d..18fcc22 100644 --- a/platform/posix/functions/_PDCLIB/_PDCLIB_stdinit.c +++ b/platform/posix/functions/_PDCLIB/_PDCLIB_stdinit.c @@ -385,7 +385,7 @@ struct _PDCLIB_locale _PDCLIB_global_locale = { }; /* Todo: Better solution than this! */ -__attribute__((constructor)) void init_stdio(void) +__attribute__((constructor)) static void init_stdio(void) { _PDCLIB_initclocale( &_PDCLIB_global_locale ); tss_create(&_PDCLIB_locale_tss, (tss_dtor_t) freelocale);