summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2019-04-15 03:37:59 +0000
committervisa <visa@openbsd.org>2019-04-15 03:37:59 +0000
commitd258f753de6dd2fee0af0129c962c795afc381f1 (patch)
tree038acdff20bcde334eee61e4ea5f8dbad22d9978
parentAdd a type cast to silence clang error about an implicit conversion (diff)
downloadwireguard-openbsd-d258f753de6dd2fee0af0129c962c795afc381f1.tar.xz
wireguard-openbsd-d258f753de6dd2fee0af0129c962c795afc381f1.zip
Use literals as format strings. This fixes an error reported by clang.
OK deraadt@ millert@ kettenis@
-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