From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1921) id 38C6D3857C78; Mon, 16 Nov 2020 18:35:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38C6D3857C78 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Fix return type of __locale_ctype_ptr_l() X-Act-Checkin: newlib-cygwin X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/master X-Git-Oldrev: 3b80191f3348d109bcebb8e13f1bd81aa8f91be6 X-Git-Newrev: 14a1e7ce4288b8d3fde1359c73cb8805bcdf78a6 Message-Id: <20201116183533.38C6D3857C78@sourceware.org> Date: Mon, 16 Nov 2020 18:35:33 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2020 18:35:33 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=14a1e7ce4288b8d3fde1359c73cb8805bcdf78a6 commit 14a1e7ce4288b8d3fde1359c73cb8805bcdf78a6 Author: Sebastian Huber Date: Mon Nov 16 14:38:22 2020 +0100 Fix return type of __locale_ctype_ptr_l() This prevents warnings like this: ctype.h:118:9: warning: return discards 'const' qualifier from pointer target type Diff: --- newlib/libc/include/ctype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/include/ctype.h b/newlib/libc/include/ctype.h index 8b1013ac0..932a567e2 100644 --- a/newlib/libc/include/ctype.h +++ b/newlib/libc/include/ctype.h @@ -111,7 +111,7 @@ const char *__locale_ctype_ptr (void); #ifdef __HAVE_LOCALE_INFO__ const char *__locale_ctype_ptr_l (locale_t); #else -static __inline char * +static __inline const char * __locale_ctype_ptr_l(locale_t _l) { (void)_l;