This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gas: rx: constify string to rx_error
- From: Mike Frysinger <vapier at gentoo dot org>
- To: binutils at sourceware dot org, dj at redhat dot com
- Date: Mon, 24 Oct 2011 05:22:08 -0400
- Subject: Re: gas: rx: constify string to rx_error
- References: <201110191202.00641.vapier@gentoo.org>
On Wed, Oct 19, 2011 at 12:01, Mike Frysinger wrote:
> building rx's gas code atm fails:
>
> rx-parse.c: In function ‘rx_parse’:
> rx-parse.c:3774:9: error: passing argument 1 of ‘rx_error’ discards ‘const’
> qualifier from pointer target type [-Werror]
> ../../../gas/config/rx-defs.h:40:12: note: expected ‘char *’ but argument is of
> type ‘const char *’
> cc1: all warnings being treated as errors
>
> 2011-10-19 ?Mike Frysinger ?<vapier@gentoo.org>
>
> ? ? ? ?* config/rx-defs.h (rx_error): Add const to first arg.
> ? ? ? ?* config/rx-parse.y (rx_error): Likewise.
so people OK with this ?
-mike