public inbox for
help / color / mirror / Atom feed
From: Jeff Johnston <>
Subject: [newlib-cygwin] libc/include/wchar.h: Remove parameter name
Date: Fri,  2 Oct 2020 21:02:34 +0000 (GMT)	[thread overview]
Message-ID: <> (raw);h=ea275093c179fea636470173509615eb6bddad0f

commit ea275093c179fea636470173509615eb6bddad0f
Author: Torbjörn SVENSSON <>
Date:   Thu Oct 1 12:46:51 2020 +0200

    libc/include/wchar.h: Remove parameter name
    As discussed in GCC bug 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
    Signed-off-by: Torbjörn SVENSSON <>

 newlib/libc/include/wchar.h | 4 ++--
 1 file 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);

                 reply	other threads:[~2020-10-02 21:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).