aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-08-02 08:43:18 +0000
committerAlan Modra <amodra@gmail.com>2010-08-02 08:43:18 +0000
commitcd94c7fbb313d35a2c276f7c6d3b269e2452f715 (patch)
tree83953905a889cfc755f8ef94c160521bd243d6c0 /gas/config
parent089b899275f30c29711b1b8efa5a9c3d02cf0ac5 (diff)
downloadgdb-cd94c7fbb313d35a2c276f7c6d3b269e2452f715.zip
gdb-cd94c7fbb313d35a2c276f7c6d3b269e2452f715.tar.gz
gdb-cd94c7fbb313d35a2c276f7c6d3b269e2452f715.tar.bz2
* config/tc-v850.c (md_assemble): Always pass format string to
as_warn. (md_apply_fix): Similarly for as_warn_where.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-v850.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-v850.c b/gas/config/tc-v850.c
index d792769..69d4502 100644
--- a/gas/config/tc-v850.c
+++ b/gas/config/tc-v850.c
@@ -2709,7 +2709,7 @@ md_assemble (char *str)
}
if (warningmsg != NULL)
- as_warn (warningmsg);
+ as_warn ("%s", warningmsg);
break;
}
@@ -3111,7 +3111,7 @@ md_apply_fix (fixS *fixP, valueT *valueP, segT seg ATTRIBUTE_UNUSED)
insn = v850_insert_operand (insn, operand, (offsetT) value,
&errmsg);
if (errmsg)
- as_warn_where (fixP->fx_file, fixP->fx_line, errmsg);
+ as_warn_where (fixP->fx_file, fixP->fx_line, "%s", errmsg);
if (fixP->fx_size > 2)
bfd_putl32 ((bfd_vma) insn, (unsigned char *) where);