This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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. Signed-off-by: Mike Frysinger <vapier@gentoo.org> --- gas/config/rx-defs.h | 2 +- gas/config/rx-parse.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gas/config/rx-defs.h b/gas/config/rx-defs.h index 868796e..5353cb9 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 b473788..263e78b 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; -- 1.7.6.1
Attachment:
signature.asc
Description: This is a digitally signed message part.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |