aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-14 00:51:59 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-14 00:53:13 -0500
commitadb0bd8fda7dded7ffb227481f663fdfcbfbe63a (patch)
tree22417d7d67bbe1162900be1d255f68c1e7dbe468
parent54780889e9591f1951272e5baa861dc0fb8c0f02 (diff)
downloadfsf-binutils-gdb-adb0bd8fda7dded7ffb227481f663fdfcbfbe63a.zip
fsf-binutils-gdb-adb0bd8fda7dded7ffb227481f663fdfcbfbe63a.tar.gz
fsf-binutils-gdb-adb0bd8fda7dded7ffb227481f663fdfcbfbe63a.tar.bz2
gas: bfin: fix build time warnings
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/bfin-lex.l5
2 files changed, 9 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index bad8473..4b05f3e 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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
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;