This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Silence ar compile warnings
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: binutils at sources dot redhat dot com
- Date: Mon, 3 Dec 2001 10:30:48 +0100
- Subject: [PATCH] Silence ar compile warnings
Hi All,
this silences some lexer-related compile warnings from ar.
Thiemo
2001-12-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/binutils/ChangeLog
* arlex.l: Silence compile warnings.
* arsup.h: Likewise.
diff -BurpN source-orig/binutils/arlex.l source/binutils/arlex.l
--- source-orig/binutils/arlex.l Mon Nov 5 22:52:09 2001
+++ source/binutils/arlex.l Sun Dec 2 20:15:57 2001
@@ -29,6 +29,10 @@ Foundation, Inc., 59 Temple Place - Suit
#include "libiberty.h"
#include "arparse.h"
+#define YY_NO_UNPUT
+
+extern int yylex PARAMS ((void));
+
int linenumber;
%}
diff -BurpN source-orig/binutils/arsup.h source/binutils/arsup.h
--- source-orig/binutils/arsup.h Tue Mar 13 07:43:57 2001
+++ source/binutils/arsup.h Sun Dec 2 20:15:57 2001
@@ -64,6 +64,9 @@ ar_extract PARAMS ((struct list *));
bfd *
open_inarch PARAMS ((const char *archive_filename, const char *));
+extern int
+yylex PARAMS ((void));
+
int
yyparse PARAMS ((void));