diff options
author | Eugene Tarassov | 2017-02-23 03:59:18 +0000 |
---|---|---|
committer | Eugene Tarassov | 2017-02-23 03:59:18 +0000 |
commit | 3d10a86f1c82d56ebd9ed9e0a939ab3473c4dad5 (patch) | |
tree | 8e8a621851ee19320f83fe3208db2db436eebbc7 | |
parent | ea202a68a22491215bb0b40ada8c5a55b15adde9 (diff) | |
download | org.eclipse.tcf.agent-3d10a86f1c82d56ebd9ed9e0a939ab3473c4dad5.tar.gz org.eclipse.tcf.agent-3d10a86f1c82d56ebd9ed9e0a939ab3473c4dad5.tar.xz org.eclipse.tcf.agent-3d10a86f1c82d56ebd9ed9e0a939ab3473c4dad5.zip |
TCF Agent: fixed compilation warnings
-rw-r--r-- | agent/machine/a64/tcf/disassembler-a64.c | 4 | ||||
-rw-r--r-- | agent/machine/arm/tcf/disassembler-arm.c | 4 | ||||
-rw-r--r-- | agent/machine/powerpc/tcf/disassembler-powerpc.c | 6 | ||||
-rw-r--r-- | agent/tcf/services/disassembly.c | 6 |
4 files changed, 10 insertions, 10 deletions
diff --git a/agent/machine/a64/tcf/disassembler-a64.c b/agent/machine/a64/tcf/disassembler-a64.c index aaf94f41..dcc842a8 100644 --- a/agent/machine/a64/tcf/disassembler-a64.c +++ b/agent/machine/a64/tcf/disassembler-a64.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2014, 2015 Xilinx, Inc. and others. + * Copyright (c) 2014, 2017 Xilinx, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 which accompany this distribution. @@ -2258,7 +2258,7 @@ DisassemblyResult * disassemble_a64(uint8_t * code, dr.text = buf; if (buf_pos == 0) { - snprintf(buf, sizeof(buf), ".word 0x%08x", instr); + snprintf(buf, sizeof(buf), ".word 0x%08x", (unsigned)instr); } else { buf[buf_pos] = 0; diff --git a/agent/machine/arm/tcf/disassembler-arm.c b/agent/machine/arm/tcf/disassembler-arm.c index 65ea7c38..6f63996c 100644 --- a/agent/machine/arm/tcf/disassembler-arm.c +++ b/agent/machine/arm/tcf/disassembler-arm.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2013, 2016 Xilinx, Inc. and others. + * Copyright (c) 2013, 2017 Xilinx, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 which accompany this distribution. @@ -3089,7 +3089,7 @@ DisassemblyResult * disassemble_arm(uint8_t * code, dr.text = buf; if (buf_pos == 0) { - snprintf(buf, sizeof(buf), ".word 0x%08x", instr); + snprintf(buf, sizeof(buf), ".word 0x%08x", (unsigned)instr); } else { buf[buf_pos] = 0; diff --git a/agent/machine/powerpc/tcf/disassembler-powerpc.c b/agent/machine/powerpc/tcf/disassembler-powerpc.c index a49816f8..44e4238c 100644 --- a/agent/machine/powerpc/tcf/disassembler-powerpc.c +++ b/agent/machine/powerpc/tcf/disassembler-powerpc.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2014 Stanislav Yakovlev and others. + * Copyright (c) 2014, 2017 Stanislav Yakovlev and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 which accompany this distribution. @@ -861,8 +861,8 @@ DisassemblyResult * disassemble_powerpc(uint8_t * code, disassemble_opcode(instr); if (buf_pos == 0) { - snprintf(buf, sizeof(buf), ".word 0x%08x ; opcode %d,%d", - instr, bits_uint8(instr, 0, 6), bits_uint32(instr, 21, 10)); + snprintf(buf, sizeof(buf), ".word 0x%08x ; opcode %u,%u", + (unsigned)instr, bits_uint8(instr, 0, 6), (unsigned)bits_uint32(instr, 21, 10)); } else { buf[buf_pos] = 0; diff --git a/agent/tcf/services/disassembly.c b/agent/tcf/services/disassembly.c index 1018b1f2..c1e9260f 100644 --- a/agent/tcf/services/disassembly.c +++ b/agent/tcf/services/disassembly.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2013, 2016 Xilinx, Inc. and others. + * Copyright (c) 2013, 2017 Xilinx, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v1.0 which accompany this distribution. @@ -219,8 +219,8 @@ static int disassemble_block(Context * ctx, OutputStream * out, uint8_t * mem_bu memset(&dd, 0, sizeof(dd)); if (isa->alignment >= 4 && (addr & 0x3) == 0 && offs <= mem_size + 4) { unsigned i; - uint32_t v = 0; - for (i = 0; i < 4; i++) v |= (uint32_t)mem_buf[offs + i] << (i * 8); + unsigned v = 0; + for (i = 0; i < 4; i++) v |= (unsigned)mem_buf[offs + i] << (i * 8); snprintf(buf, sizeof(buf), ".word 0x%08x", v); dd.size = 4; } |