OSDN Git Service

PR 9874
authorNick Clifton <nickc@redhat.com>
Mon, 2 Mar 2009 14:47:38 +0000 (14:47 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 2 Mar 2009 14:47:38 +0000 (14:47 +0000)
        * config/tc-ia64.c (fix_insn): Fix warning reported by
        -Wformat-security.

gas/ChangeLog
gas/config/tc-ia64.c

index bcf762d..7bd0ec2 100644 (file)
@@ -1,3 +1,9 @@
+2009-03-02  Nick Clifton  <nickc@redhat.com>
+
+       PR 9874
+       * config/tc-ia64.c (fix_insn): Fix warning reported by
+       -Wformat-security.
+
 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
 
        * config/tc-score7.c: New file.
index 7c369d4..2113fa4 100644 (file)
@@ -11175,7 +11175,7 @@ fix_insn (fixS *fix, const struct ia64_operand *odesc, valueT value)
     err = (*odesc->insert) (odesc, value, insn + slot);
 
   if (err)
-    as_bad_where (fix->fx_file, fix->fx_line, err);
+    as_bad_where (fix->fx_file, fix->fx_line, "%s", err);
 
   t0 = control_bits | (insn[0] << 5) | (insn[1] << 46);
   t1 = ((insn[1] >> 18) & 0x7fffff) | (insn[2] << 23);