aboutsummaryrefslogtreecommitdiff
path: root/gas/config/bfin-lex.l
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/bfin-lex.l')
-rw-r--r--gas/config/bfin-lex.l5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/bfin-lex.l b/gas/config/bfin-lex.l
index 188bb19..ec3d1fe 100644
--- a/gas/config/bfin-lex.l
+++ b/gas/config/bfin-lex.l
@@ -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;