Module Name:    src
Committed By:   snj
Date:           Sun Nov 15 21:57:49 UTC 2009

Modified Files:
        src/external/gpl3/binutils/dist/gas/config: tc-mips.c

Log Message:
Pull in fixes from upstream revision 1.406 to avoid string formatting
warnings.  Fixes build with newer GCC, like the one in Snow Leopard.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/gpl3/binutils/dist/gas/config/tc-mips.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-mips.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.1.1.1 src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.2
--- src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.1.1.1	Tue Aug 18 09:35:02 2009
+++ src/external/gpl3/binutils/dist/gas/config/tc-mips.c	Sun Nov 15 21:57:49 2009
@@ -3456,7 +3456,7 @@
 	     warning now.  */
 	  const char *msg = macro_warning (subtype);
 	  if (msg != 0)
-	    as_warn (msg);
+	    as_warn ("%s", msg);
 	}
       else
 	{
@@ -14449,7 +14449,7 @@
 	{
 	  const char *msg = macro_warning (fragp->fr_subtype);
 	  if (msg != 0)
-	    as_warn_where (fragp->fr_file, fragp->fr_line, msg);
+	    as_warn_where (fragp->fr_file, fragp->fr_line, "%s", msg);
 	}
 
       /* Go through all the fixups for the first sequence.  Disable them

Reply via email to