gas: bfin: fix build time warnings

This commit is contained in:
Mike Frysinger 2021-01-14 00:51:59 -05:00
parent 54780889e9
commit adb0bd8fda
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2021-01-14 Mike Frysinger <vapier@gentoo.org>
* bfin-lex.l (YY_NO_INPUT, YY_NO_UNPUT): Define.
(parse_int): Mark char_bag const.
2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
PR gas/27178

View File

@ -32,6 +32,9 @@ int yylex (void);
#define _REG yylval.reg
/* Flex generates static functions "input" & "unput" which are not used. */
#define YY_NO_INPUT
#define YY_NO_UNPUT
%}
@ -343,7 +346,7 @@ static long parse_int (char **end)
char fmt = '\0';
int not_done = 1;
int shiftvalue = 0;
char * char_bag;
const char *char_bag;
unsigned long value = 0;
char *arg = *end;