Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/gas/config Pull in fixes from up...



details:   https://anonhg.NetBSD.org/src/rev/d8d750e5cd5f
branches:  trunk
changeset: 749067:d8d750e5cd5f
user:      snj <snj%NetBSD.org@localhost>
date:      Sun Nov 15 21:57:49 2009 +0000

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

diffstat:

 external/gpl3/binutils/dist/gas/config/tc-mips.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r ee067953e2bf -r d8d750e5cd5f external/gpl3/binutils/dist/gas/config/tc-mips.c
--- a/external/gpl3/binutils/dist/gas/config/tc-mips.c  Sun Nov 15 21:56:06 2009 +0000
+++ b/external/gpl3/binutils/dist/gas/config/tc-mips.c  Sun Nov 15 21:57:49 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index