* [PATCH/committed] gas: bfin: fix build time warnings
@ 2021-01-14 5:53 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2021-01-14 5:53 UTC (permalink / raw)
To: binutils
---
gas/ChangeLog | 5 +++++
gas/config/bfin-lex.l | 5 ++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index bad8473bf669..4b05f3ef328a 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 188bb197be6f..ec3d1feb042b 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;
--
2.28.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-14 5:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-14 5:53 [PATCH/committed] gas: bfin: fix build time warnings Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).