From 4e024bb4f5c8aa8b07459f7fbd65c35122127fd1 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Wed, 22 Sep 2010 14:19:28 +0200 Subject: Remove compiler warnings when building the emulator. This forces -Wall during the build. Note that this patch doesn't remove all warnings, but most of the remaining ones are from upstream anyway. Change-Id: I8808d8495e99866e156ce5780d2e3c305eab491f --- elff/dwarf_utils.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'elff/dwarf_utils.cc') diff --git a/elff/dwarf_utils.cc b/elff/dwarf_utils.cc index 56c05a3..1d84b66 100644 --- a/elff/dwarf_utils.cc +++ b/elff/dwarf_utils.cc @@ -275,12 +275,12 @@ dump_value(const Dwarf_Value* attr_value) { break; case DWARF_VALUE_U64: - printf("XWORD) = %I64u (x%I64X)\n", attr_value->u64, + printf("XWORD) = %" FMT_I64 "u (x%" FMT_I64 "X)\n", attr_value->u64, attr_value->u64); break; case DWARF_VALUE_S64: - printf("SXWORD) = %I64d (x%I64X)\n", attr_value->s64, + printf("SXWORD) = %" FMT_I64 "d (x%" FMT_I64 "X)\n", attr_value->s64, attr_value->s64); break; @@ -293,11 +293,11 @@ dump_value(const Dwarf_Value* attr_value) { break; case DWARF_VALUE_PTR64: - printf("PTR64) = x%08I64X\n", attr_value->ptr64); + printf("PTR64) = x%08" FMT_I64 "X\n", attr_value->ptr64); break; case DWARF_VALUE_BLOCK: - printf("BLOCK) = [%I64u]:", attr_value->block.block_size); + printf("BLOCK) = [%u]:", attr_value->block.block_size); for (Elf_Xword i = 0; i < attr_value->block.block_size; i++) { Elf_Byte prnt = *((const Elf_Byte*)attr_value->block.block_ptr + i); printf(" x%02X", prnt); -- cgit v1.1