From: Mike Frysinger Date: Tue, 25 Oct 2011 20:36:22 +0000 (+0000) Subject: Building rx's gas code atm fails: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=214ce7b58a5e6526bd9fcfe7e7893e2b915f75fd;p=binutils-gdb.git 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 --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 2167d36737e..d82606a59fd 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2011-10-25 Mike Frysinger + + * config/rx-defs.h (rx_error): Add const to first arg. + * config/rx-parse.y (rx_error): Likewise. + 2011-10-25 Nick Clifton * config/tc-ns32k.c (md_begin): Rename local variable 'stat' to diff --git a/gas/config/rx-defs.h b/gas/config/rx-defs.h index 868796efd27..5353cb91915 100644 --- a/gas/config/rx-defs.h +++ b/gas/config/rx-defs.h @@ -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); diff --git a/gas/config/rx-parse.y b/gas/config/rx-parse.y index b473788cc04..263e78b936e 100644 --- a/gas/config/rx-parse.y +++ b/gas/config/rx-parse.y @@ -1277,7 +1277,7 @@ rx_lex (void) } int -rx_error (char * str) +rx_error (const char * str) { int len;