Commit 20867cbc authored by Matthias Braun's avatar Matthias Braun
Browse files

fix warning

parent 7156b8a7
......@@ -62,6 +62,7 @@ foreach my $unit_type (keys(%cpu)) {
push(@obst_unit_tp_defs, "\t$tp_name,\n");
push(@obst_init, "\n\t\t/* init of execution unit type $tp_name */\n");
push(@obst_init, "\t\tcur_unit_tp = &$arch\_execution_unit_types[$tp_name];\n");
push(@obst_init, "\t\t(void) cur_unit_tp; /* avoid warning */\n");
push(@obst_unit_defs, "/* enum for execution units of type $unit_type */\n");
push(@obst_unit_defs, "enum $arch\_execunit_tp_$unit_type\_vals {\n");
......@@ -162,6 +163,7 @@ const be_machine_t *$arch\_init_machine_description(void) {
if (! initialized) {
be_execution_unit_type_t *cur_unit_tp;
(void) cur_unit_tp; /* avoid warning */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment