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: [PATCH] Silence ar compile warnings


Alan Modra wrote:
[snip]
> > +++ 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));
> 
> Except that this should all be on one line.  Function definitions have
> the function name in column 0, not function declarations.

The rest of the file looked this way, too. :-)
I checked in the appended patch.


Thiemo


2001-12-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

	/binutils/ChangeLog
	* arlex.l: Silence compile warnings.
	* arsup.h: Likewise. Fix formatting.


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	Mon Dec  3 11:09:19 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	Tue Dec  4 14:47:31 2001
@@ -22,54 +22,40 @@ struct list {
 	struct list *next;
 };
 
-void
-maybequit PARAMS ((void));
+void maybequit PARAMS ((void));
 
-void
-prompt PARAMS ((void));
+void prompt PARAMS ((void));
 
-void
-ar_clear PARAMS ((void));
+void ar_clear PARAMS ((void));
 
-void
-ar_replace PARAMS ((struct list *));
+void ar_replace PARAMS ((struct list *));
 
-void
-ar_delete PARAMS ((struct list *));
+void ar_delete PARAMS ((struct list *));
 
-void
-ar_save PARAMS ((void));
+void ar_save PARAMS ((void));
 
-void
-ar_list PARAMS ((void));
+void ar_list PARAMS ((void));
 
-void
-ar_open PARAMS ((char *, int));
+void ar_open PARAMS ((char *, int));
 
-void
-ar_directory PARAMS ((char *, struct list *, char *));
+void ar_directory PARAMS ((char *, struct list *, char *));
 
-void
-ar_addmod PARAMS ((struct list *));
+void ar_addmod PARAMS ((struct list *));
 
-void
-ar_addlib PARAMS ((char *, struct list *));
+void ar_addlib PARAMS ((char *, struct list *));
 
-void 
-ar_end PARAMS ((void));
+void ar_end PARAMS ((void));
 
-void
-ar_extract PARAMS ((struct list *));
+void ar_extract PARAMS ((struct list *));
 
-bfd *
-open_inarch PARAMS ((const char *archive_filename, const char *));
+bfd *open_inarch PARAMS ((const char *archive_filename, const char *));
 
-int
-yyparse PARAMS ((void));
+extern int yylex PARAMS ((void));
+
+int yyparse PARAMS ((void));
 
 /* Functions from ar.c */
 
-void
-extract_file PARAMS ((bfd * abfd));
+void extract_file PARAMS ((bfd * abfd));
 
 extern int interactive;


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