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]

PATCH: silence lex warnings


This patch silences warnings about functions that are defined but not
used when building the lex scanners in binutils/.  These %options were
available in flex 2.5.4a (released in 1997), so I think this option is
safe to use in the current binutils sources.

OK for the trunk?

Thanks,
Ben

2009-11-19  Ben Elliston  <bje@au.ibm.com>

	* arlex.l: Enable noinput, nounput flex options.
	* syslex.l: Likewise.

Index: arlex.l
===================================================================
RCS file: /cvs/src/src/binutils/arlex.l,v
retrieving revision 1.12
diff -u -p -r1.12 arlex.l
--- arlex.l	2 Sep 2009 07:22:31 -0000	1.12
+++ arlex.l	19 Nov 2009 04:22:09 -0000
@@ -1,3 +1,5 @@
+%option noinput nounput
+
 %{
 /* arlex.l - Strange script language lexer */
 
Index: syslex.l
===================================================================
RCS file: /cvs/src/src/binutils/syslex.l,v
retrieving revision 1.8
diff -u -p -r1.8 syslex.l
--- syslex.l	5 Jul 2007 16:54:45 -0000	1.8
+++ syslex.l	19 Nov 2009 04:22:10 -0000
@@ -1,3 +1,5 @@
+%option noinput nounput
+
 %{
 /* Copyright 2001, 2003, 2005, 2007 Free Software Foundation, Inc.
 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]