Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
20867cbc
Commit
20867cbc
authored
Dec 15, 2006
by
Matthias Braun
Browse files
fix warning
parent
7156b8a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/scripts/generate_machine.pl
View file @
20867cbc
...
...
@@ -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\t
cur_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 */
be_machine_init_dummy_unit();
EOF
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment