From: Nathan Sidwell Date: Wed, 22 Apr 2009 11:40:25 +0000 (+0000) Subject: * config/tc-mips.c (macro_end, md_convert_frag): Use '%s' for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=520725ea031c1700732708d37787117c3a1c6752;p=binutils-gdb.git * config/tc-mips.c (macro_end, md_convert_frag): Use '%s' for as_bad calls to silence compiler warning. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 2136ab429bc..70b9a1e5d69 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2009-04-22 Nathan Sidwell + + * config/tc-mips.c (macro_end, md_convert_frag): Use '%s' for + as_bad calls to silence compiler warning. + 2009-04-21 H.J. Lu * config/tc-i386-intel.c (O_XXX): Reorder. diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 5c85845a4e3..9eb12620344 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -3575,7 +3575,7 @@ macro_end (void) warning now. */ const char *msg = macro_warning (subtype); if (msg != 0) - as_warn (msg); + as_warn ("%s", msg); } else { @@ -14633,7 +14633,7 @@ md_convert_frag (bfd *abfd ATTRIBUTE_UNUSED, segT asec, fragS *fragp) { 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