aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2009-04-22 11:40:25 +0000
committerNathan Sidwell <nathan@codesourcery.com>2009-04-22 11:40:25 +0000
commit520725ea031c1700732708d37787117c3a1c6752 (patch)
tree3d2030f69ad351be8760d1d156918c003c0a4f55 /gas/config
parente31198c47e3787a1818ac6497bfe07474ddda4c8 (diff)
downloadgdb-520725ea031c1700732708d37787117c3a1c6752.zip
gdb-520725ea031c1700732708d37787117c3a1c6752.tar.gz
gdb-520725ea031c1700732708d37787117c3a1c6752.tar.bz2
* config/tc-mips.c (macro_end, md_convert_frag): Use '%s' for
as_bad calls to silence compiler warning.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 5c85845..9eb1262 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