diff options
author | Torbjörn SVENSSON <torbjorn.svensson@st.com> | 2020-10-01 12:46:51 +0200 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2020-10-02 17:02:28 -0400 |
commit | ea275093c179fea636470173509615eb6bddad0f (patch) | |
tree | 711d56b81d0365bf7e72dd26d9d6b06e0b2b2e94 | |
parent | 615cf4bdce0de86e57bdc27e008a35dd713e483f (diff) | |
download | cygnal-ea275093c179fea636470173509615eb6bddad0f.tar.gz cygnal-ea275093c179fea636470173509615eb6bddad0f.tar.bz2 cygnal-ea275093c179fea636470173509615eb6bddad0f.zip |
libc/include/wchar.h: Remove parameter name
As discussed in GCC bug 97088
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97088), parameters in
prototypes of library functions should use reserved names, or no name
at all.
This patch removes the 'ptr' parameter name from
wint_t _getwchar_r (struct _reent *);
wint_t _getwchar_unlocked_r (struct _reent *);
to avoid possible clashes with user code in case someone uses
before including Newlib's wchar.h (or uses some other conflicting
definition)
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
-rw-r--r-- | newlib/libc/include/wchar.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h index c04a6510e..0d3e636f9 100644 --- a/newlib/libc/include/wchar.h +++ b/newlib/libc/include/wchar.h @@ -248,8 +248,8 @@ int _fputws_unlocked_r (struct _reent *, const wchar_t *, __FILE *); int _fwide_r (struct _reent *, __FILE *, int); wint_t _getwc_r (struct _reent *, __FILE *); wint_t _getwc_unlocked_r (struct _reent *, __FILE *); -wint_t _getwchar_r (struct _reent *ptr); -wint_t _getwchar_unlocked_r (struct _reent *ptr); +wint_t _getwchar_r (struct _reent *); +wint_t _getwchar_unlocked_r (struct _reent *); wint_t _putwc_r (struct _reent *, wchar_t, __FILE *); wint_t _putwc_unlocked_r (struct _reent *, wchar_t, __FILE *); wint_t _putwchar_r (struct _reent *, wchar_t); |