summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2019-04-15 03:38:00 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2019-04-15 03:38:00 +0000
commit3d172f1f2f58fd24b1f56236854893ed4763579e (patch)
treeec1d66608ff0f8559f8901fa68df91016eca901f /gnu/usr.bin
parent99bfb65b2a29d8ef472f06e1f92ddd83b65f8662 (diff)
Use literals as format strings. This fixes an error reported by clang.
OK deraadt@ millert@ kettenis@
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/binutils-2.17/gas/config/tc-mips.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/binutils-2.17/gas/config/tc-mips.c b/gnu/usr.bin/binutils-2.17/gas/config/tc-mips.c
index 60dfef98c2a..f4196cb0087 100644
--- a/gnu/usr.bin/binutils-2.17/gas/config/tc-mips.c
+++ b/gnu/usr.bin/binutils-2.17/gas/config/tc-mips.c
@@ -3227,7 +3227,7 @@ macro_end (void)
warning now. */
const char *msg = macro_warning (subtype);
if (msg != 0)
- as_warn (msg);
+ as_warn ("%s", msg);
}
else
{
@@ -13779,7 +13779,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