* BUG: Fix two warnings in structure initializations.


git-svn-id: svn://localhost/gambas/trunk@4785 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2012-05-26 19:04:22 +00:00
parent 2375145a67
commit 5ad32aea43

View file

@ -577,7 +577,7 @@ struct PushUnknownExpression : Expression {
unsigned short* pc;
int name_id;
PushUnknownExpression(Expression* obj, int name_id, unsigned short* pc) :
obj(obj), name_id(name_id), pc(pc) {
obj(obj), pc(pc), name_id(name_id) {
type = T_VARIANT;
ref_stack();
obj->must_on_stack();
@ -832,7 +832,7 @@ struct JumpEnumFirstExpression : Expression {
llvm::Value* ob;
int ctrl;
JumpEnumFirstExpression(int ctrl, Expression* obj)
: ctrl(ctrl), obj(obj) {
: obj(obj), ctrl(ctrl) {
set_ctrl_type(obj->type, ctrl);
}
void codegen();