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/etm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/target/etm.c') diff --git a/src/target/etm.c b/src/target/etm.c index 2e422ee6..06b97fe3 100644 --- a/src/target/etm.c +++ b/src/target/etm.c @@ -647,7 +647,7 @@ int etmv1_branch_address(etm_context_t *ctx) u8 packet; int shift = 0; int apo; - int i; + u32 i; /* quit analysis if less than two cycles are left in the trace * because we can't extract the APO */ @@ -998,7 +998,7 @@ int etmv1_analyze_trace(etm_context_t *ctx, struct command_context_s *cmd_ctx) if (((instruction.type == ARM_B) || (instruction.type == ARM_BL) || (instruction.type == ARM_BLX)) && - (instruction.info.b_bl_bx_blx.target_address != -1)) + (instruction.info.b_bl_bx_blx.target_address != ~0UL)) { next_pc = instruction.info.b_bl_bx_blx.target_address; } @@ -1543,7 +1543,7 @@ int handle_etm_dump_command(struct command_context_s *cmd_ctx, char *cmd, char * armv4_5_common_t *armv4_5; arm7_9_common_t *arm7_9; etm_context_t *etm_ctx; - int i; + u32 i; if (argc != 1) { @@ -1611,7 +1611,7 @@ int handle_etm_load_command(struct command_context_s *cmd_ctx, char *cmd, char * armv4_5_common_t *armv4_5; arm7_9_common_t *arm7_9; etm_context_t *etm_ctx; - int i; + u32 i; if (argc != 1) { -- cgit v1.2.3