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]

[PATCH] Warning roundup - binutils/


These are all obvious, so committed to trunk and branch.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

2002-02-10  Daniel Jacobowitz  <drow@mvista.com>

	* coffdump.c: Include "getopt.h" after "bucomm.h"
	so that macros are defined correctly.
	* nlmconv.c: Add PARAMS ((const time_t *)) to localtime
	prototype.  Prototype main.
	* nlmheader.y: Add PARAMS ((int)) to strerror prototype.

Index: binutils/coffdump.c
===================================================================
RCS file: /cvs/src/src/binutils/coffdump.c,v
retrieving revision 1.7
diff -u -p -r1.7 coffdump.c
--- coffdump.c	2002/01/23 16:12:55	1.7
+++ coffdump.c	2002/02/10 18:20:36
@@ -24,11 +24,11 @@
    it out so we can test the grokker.  */
 
 #include <bfd.h>
-#include <getopt.h>
 #include <libiberty.h>
 
 #include "coffgrok.h"
 #include "bucomm.h"
+#include "getopt.h"
 
 static int atnl;
 
Index: binutils/nlmconv.c
===================================================================
RCS file: /cvs/src/src/binutils/nlmconv.c,v
retrieving revision 1.9
diff -u -p -r1.9 nlmconv.c
--- nlmconv.c	2002/01/23 16:12:55	1.9
+++ nlmconv.c	2002/02/10 18:20:36
@@ -59,7 +59,7 @@
 extern char *strerror PARAMS ((int));
 
 #ifndef localtime
-extern struct tm *localtime ();
+extern struct tm *localtime PARAMS ((const time_t *));
 #endif
 
 #ifndef SEEK_SET
@@ -121,6 +121,8 @@ static struct option long_options[] =
 };
 
 /* Local routines.  */
+
+int main PARAMS ((int, char **));
 
 static void show_usage PARAMS ((FILE *, int));
 static const char *select_output_format PARAMS ((enum bfd_architecture,
Index: binutils/nlmheader.y
===================================================================
RCS file: /cvs/src/src/binutils/nlmheader.y,v
retrieving revision 1.3
diff -u -p -r1.3 nlmheader.y
--- nlmheader.y	2001/09/19 05:33:16	1.3
+++ nlmheader.y	2002/02/10 18:20:36
@@ -494,7 +494,7 @@ string_list:
 /* If strerror is just a macro, we want to use the one from libiberty
    since it will handle undefined values.  */
 #undef strerror
-extern char *strerror ();
+extern char *strerror PARAMS ((int));
 
 /* The lexer is simple, too simple for flex.  Keywords are only
    recognized at the start of lines.  Everything else must be an


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