diff options
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/translate.cxx b/translate.cxx index 4add7b64..8806e502 100644 --- a/translate.cxx +++ b/translate.cxx @@ -765,8 +765,11 @@ c_unparser::emit_function (functiondecl* v) } // initialize return value, if any - var retvalue = var(true, v->type, "__retvalue"); - o->newline() << retvalue.init(); + if (v->type != pe_unknown) + { + var retvalue = var(true, v->type, "__retvalue"); + o->newline() << retvalue.init(); + } v->body->visit (this); this->current_function = 0; |