Skip to content

Commit

Permalink
Clean-up unused variable warnings in Odin II.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmurray committed Feb 3, 2016
1 parent b4399d5 commit ecbfc70
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ODIN_II/SRC/netlist_create_from_ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -3110,21 +3110,15 @@ signal_list_t *assignment_alias(ast_node_t* assignment, char *instance_name_pref

void define_latchs_initial_value_inside_initial_statement(ast_node_t *initial_node, char *instance_name_prefix)
{
int i, q;
int i;
long sc_spot;
ast_node_t *assignee;
ast_node_t *value;
char *word_to_set_latch_initial_value;
for(i = 0; i < initial_node->num_children; i++)
{
/*check to see if, for each member of the initial block, if the assignment to a given variable is a number and not
a complex statement*/
if((initial_node->children[i]->type == BLOCKING_STATEMENT || initial_node->children[i]->type == NON_BLOCKING_STATEMENT)
&& initial_node->children[i]->children[1]->type == NUMBERS)
{
//Assignee
assignee = initial_node->children[i]->children[0];

//Value
int number = initial_node->children[i]->children[1]->types.number.value;

Expand Down

0 comments on commit ecbfc70

Please sign in to comment.