aboutsummaryrefslogtreecommitdiff
path: root/contrib/binutils
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2017-08-18 18:26:30 +0000
committerEd Maste <emaste@FreeBSD.org>2017-08-18 18:26:30 +0000
commitf2356007d54e64350b32e77dc24b826f3af1a3f2 (patch)
tree285fe1c9c772c42f0fa3270a2ac720a257ab94a2 /contrib/binutils
parente80e4f3aca2ead8be4e4731f140a6efca5697d24 (diff)
downloadsrc-f2356007d54e64350b32e77dc24b826f3af1a3f2.tar.gz
src-f2356007d54e64350b32e77dc24b826f3af1a3f2.zip
gas: fix "format string is not a string literal" errors on mips
Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=322671
Diffstat (limited to 'contrib/binutils')
-rw-r--r--contrib/binutils/gas/config/tc-mips.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/binutils/gas/config/tc-mips.c b/contrib/binutils/gas/config/tc-mips.c
index d1f745e1a1ea..f4d99ff2ca96 100644
--- a/contrib/binutils/gas/config/tc-mips.c
+++ b/contrib/binutils/gas/config/tc-mips.c
@@ -3310,7 +3310,7 @@ macro_end (void)
warning now. */
const char *msg = macro_warning (subtype);
if (msg != 0)
- as_warn (msg);
+ as_warn ("%s", msg);
}
else
{
@@ -14463,7 +14463,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