From 40580e2d71ac56131a5da7e5f67a0b63450e4f24 Mon Sep 17 00:00:00 2001 From: oharboe Date: Sun, 19 Apr 2009 20:51:16 +0000 Subject: Zach Welch fix -Werror warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@1472 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/oocd_trace.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/target/oocd_trace.c') diff --git a/src/target/oocd_trace.c b/src/target/oocd_trace.c index 7c0f7ab0..55ea67ca 100644 --- a/src/target/oocd_trace.c +++ b/src/target/oocd_trace.c @@ -78,7 +78,8 @@ int oocd_trace_write_reg(oocd_trace_t *oocd_trace, int reg, u32 value) int oocd_trace_read_memory(oocd_trace_t *oocd_trace, u8 *data, u32 address, u32 size) { - size_t bytes_written, bytes_read, bytes_to_read; + size_t bytes_written, bytes_to_read; + ssize_t bytes_read; u8 cmd; oocd_trace_write_reg(oocd_trace, OOCD_TRACE_ADDRESS, address); @@ -188,7 +189,7 @@ int oocd_trace_read_trace(etm_context_t *etm_ctx) u32 first_frame = 0x0; u32 num_frames = 1048576; u8 *trace_data; - int i; + u32 i; oocd_trace_read_reg(oocd_trace, OOCD_TRACE_STATUS, &status); oocd_trace_read_reg(oocd_trace, OOCD_TRACE_ADDRESS, &address); -- cgit v1.2.3