This is the mail archive of the binutils@sources.redhat.com 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]

Re: eliminate warnings from arlex.c


> I know this is not particularly helpful, but I think the right
> approach here is to fix flex.  flex should be providing prototypes
> for the functions which it provides.  Those functions declarations
> are by and large only meaningful for flex, and they are at least
> marginally vulnerable to breaking if a new version of flex ever
> comes out.

Actually, it is particularly helpful ;-).  My system had flex 2.5.31
installed, but 2.5.4 is more recent, so I installed that and the
generated scanner is much tidier and eliminates all warnings -- even
those related to yyunput.  Thanks!

I committed the following trivial patch (all that was left) as
obvious:

2004-12-08  Ben Elliston  <bje@au.ibm.com>

	* arlex.l: Fix formatting.

Index: arlex.l
===================================================================
RCS file: /cvs/src/src/binutils/arlex.l,v
retrieving revision 1.7
diff -u -p -r1.7 arlex.l
--- arlex.l	14 Sep 2003 12:20:16 -0000	1.7
+++ arlex.l	8 Dec 2004 09:11:24 -0000
@@ -1,7 +1,7 @@
 %{
 /* arlex.l - Strange script language lexer */
 
-/*   Copyright 1992, 1997, 2000, 2002, 2003 Free Software Foundation, Inc.
+/* Copyright 1992, 1997, 2000, 2002, 2003 Free Software Foundation, Inc.
 
 This file is part of GNU Binutils.
 
@@ -20,10 +20,8 @@ along with this program; if not, write t
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 
-/* Contributed by Steve Chamberlain
-   		  sac@cygnus.com
+/* Contributed by Steve Chamberlain <sac@cygnus.com>.  */
 
-*/
 #define DONTDECLARE_MALLOC
 #include "ansidecl.h"
 #include "libiberty.h"


Attachment: signature.asc
Description: Digital signature


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