Pull in fixes from upstream revision 1.406 to avoid string formatting

warnings.  Fixes build with newer GCC, like the one in Snow Leopard.
This commit is contained in:
snj 2009-11-15 21:57:49 +00:00
parent 0e17d27172
commit 85be2afacd
1 changed files with 2 additions and 2 deletions

View File

@ -3456,7 +3456,7 @@ macro_end (void)
warning now. */
const char *msg = macro_warning (subtype);
if (msg != 0)
as_warn (msg);
as_warn ("%s", msg);
}
else
{
@ -14449,7 +14449,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