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>
+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
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);
}
int
-rx_error (char * str)
+rx_error (const char * str)
{
int len;