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

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2011-10-25 20:36:22 +00:00
parent 54d8a6445f
commit 214ce7b58a
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2011-10-25 Mike Frysinger <vapier@gentoo.org>
* config/rx-defs.h (rx_error): Add const to first arg.
* config/rx-parse.y (rx_error): Likewise.
2011-10-25 Nick Clifton <nickc@redhat.com>
* config/tc-ns32k.c (md_begin): Rename local variable 'stat' to

View file

@ -37,7 +37,7 @@
extern int rx_pid_register;
extern int rx_gp_register;
extern int rx_error (char *);
extern int rx_error (const char *);
extern void rx_lex_init (char *, char *);
extern void rx_base1 (int);
extern void rx_base2 (int, int);

View file

@ -1277,7 +1277,7 @@ rx_lex (void)
}
int
rx_error (char * str)
rx_error (const char * str)
{
int len;