dwarf2out.c (output_die): Use "%s", name instead of name to avoid -Wformat-security warning.

* dwarf2out.c (output_die): Use "%s", name instead of name to
	avoid -Wformat-security warning.

From-SVN: r220661
This commit is contained in:
Jakub Jelinek 2015-02-12 22:20:19 +01:00 committed by Jakub Jelinek
parent 2cea039801
commit 2f13a42d9c
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2015-02-12 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (output_die): Use "%s", name instead of name to
avoid -Wformat-security warning.
* dwarf2asm.c (dw2_asm_output_vms_delta): Only define
if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
* dwarf2out.c (output_die): Use dw2_asm_output_vms_delta

View File

@ -8897,14 +8897,14 @@ output_die (dw_die_ref die)
for (i = len - 1; i >= 0; --i)
{
dw2_asm_output_data (l, a->dw_attr_val.v.val_wide->elt (i),
name);
"%s", name);
name = NULL;
}
else
for (i = 0; i < len; ++i)
{
dw2_asm_output_data (l, a->dw_attr_val.v.val_wide->elt (i),
name);
"%s", name);
name = NULL;
}
}