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]

warning fixes


	* ar.c (replace_members): Remove unused var.  Formatting fix.
	* binemul.c (ar_emul_default_parse_arg): Add ATTRIBUTE_UNUSED.

Index: binutils/ar.c
===================================================================
RCS file: /cvs/src/src/binutils/ar.c,v
retrieving revision 1.24
diff -u -p -r1.24 ar.c
--- binutils/ar.c	18 Mar 2002 12:45:54 -0000	1.24
+++ binutils/ar.c	4 May 2002 01:54:42 -0000
@@ -1302,7 +1302,6 @@ replace_members (arch, files_to_move, qu
   bfd **after_bfd;		/* New entries go after this one */
   bfd *current;
   bfd **current_ptr;
-  bfd *temp;
 
   while (files_to_move && *files_to_move)
     {
@@ -1331,7 +1330,8 @@ replace_members (arch, files_to_move, qu
 			}
 		      if (bfd_stat_arch_elt (current, &asbuf) != 0)
 			/* xgettext:c-format */
-			fatal (_("internal stat error on %s"), current->filename);
+			fatal (_("internal stat error on %s"),
+			       current->filename);
 
 		      if (fsbuf.st_mtime <= asbuf.st_mtime)
 			goto next_file;
Index: binutils/binemul.c
===================================================================
RCS file: /cvs/src/src/binutils/binemul.c,v
retrieving revision 1.1
diff -u -p -r1.1 binemul.c
--- binutils/binemul.c	18 Mar 2002 12:45:54 -0000	1.1
+++ binutils/binemul.c	4 May 2002 01:54:42 -0000
@@ -159,7 +159,7 @@ ar_emul_parse_arg (arg)
 
 boolean
 ar_emul_default_parse_arg (arg)
-     char *arg;
+     char *arg ATTRIBUTE_UNUSED;
 {
   return false;
 }

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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