Fixed compilation warnings.

This commit is contained in:
Daniel Beer 2010-05-22 16:09:28 +12:00
parent 4acc170901
commit 39b71c5292
2 changed files with 2 additions and 2 deletions

View File

@ -553,7 +553,7 @@ static int find_possible_edges(int offset, int len, uint8_t *memory,
static int add_nodes_from_edges(struct call_graph *graph)
{
int i;
uint16_t last_addr;
uint16_t last_addr = 0;
int have_last_addr = 0;
qsort(graph->edge_from.ptr, graph->edge_from.size,

2
sim.c
View File

@ -281,7 +281,7 @@ static int step_single(struct sim_device *dev, uint16_t ins)
uint32_t mask = is_byte ? 0xff : 0xffff;
uint16_t src_addr = 0;
uint32_t src_data;
uint32_t res_data;
uint32_t res_data = 0;
if (fetch_operand(dev, amode, reg, is_byte, &src_addr, &src_data) < 0)
return -1;