public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Corinna Vinschen <vinschen@redhat.com>
To: newlib@sourceware.org
Subject: Re: [PATCH] Fix return type of __locale_ctype_ptr_l()
Date: Mon, 16 Nov 2020 16:01:05 +0100	[thread overview]
Message-ID: <20201116150105.GC41926@calimero.vinschen.de> (raw)
In-Reply-To: <20201116134023.10709-1-sebastian.huber@embedded-brains.de>

On Nov 16 14:40, Sebastian Huber wrote:
> This prevents warnings like this:
> 
> ctype.h:118:9: warning: return discards 'const' qualifier from pointer
>   target type
> ---
>  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;
> -- 
> 2.26.2

Looks good


Thanks,
Corinna


      reply	other threads:[~2020-11-16 15:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-16 13:40 Sebastian Huber
2020-11-16 15:01 ` Corinna Vinschen [this message]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20201116150105.GC41926@calimero.vinschen.de \
    --to=vinschen@redhat.com \
    --cc=newlib@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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).