[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] Re: const qualifier violation in regex.c:re_comp()
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] Re: const qualifier violation in regex.c:re_comp() |
Date: |
Tue, 5 Oct 2004 13:08:58 +0200 |
User-agent: |
KMail/1.5 |
Paul Eggert wrote:
> 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
>
> * regex.c (re_comp): Cast gettext return value to char *,
> Problem reported by Martin Neitzel via Mark D. Baushke.
That's the right fix, I agree.
The problem arose because while the gettext() function has a 'char *'
return type (although the returned string may be in read-only storage
and must not be freed!), in the !ENABLE_NLS case gettext.h uses
# define gettext(Msgid) ((const char *) (Msgid))
This causes a warning, that is desirable in general but must be masked out
in this case.
Bruno
- const qualifier violation in regex.c:re_comp(), Martin Neitzel, 2004/10/01
- const qualifier violation in regex.c:re_comp(), Mark D. Baushke, 2004/10/04
- Re: [Bug-gnulib] Re: const qualifier violation in regex.c:re_comp(), Martin Neitzel, 2004/10/11
- Re: [Bug-gnulib] Re: const qualifier violation in regex.c:re_comp(), Derek Robert Price, 2004/10/14
- Re: [Bug-gnulib] Re: const qualifier violation in regex.c:re_comp(), Bruno Haible, 2004/10/15
- Re: [Bug-gnulib] Re: const qualifier violation in regex.c:re_comp(), Derek Robert Price, 2004/10/15