added default cases to remove gcc warnings

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3116 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
houtanb 2009-11-02 18:31:50 +00:00
parent 63d4fe0910
commit cb52002b77
1 changed files with 6 additions and 0 deletions

View File

@ -2979,6 +2979,9 @@ DynamicModel::substituteLeadLagInternal(aux_var_t type)
case avExoLag:
subst = it->second->substituteExoLag(subst_table, neweqs);
break;
default:
cerr << "DynamicModel::substituteLeadLagInternal: impossible case" << endl;
exit(EXIT_FAILURE);
}
it->second = subst;
}
@ -3001,6 +3004,9 @@ DynamicModel::substituteLeadLagInternal(aux_var_t type)
case avExoLag:
subst = equations[i]->substituteExoLag(subst_table, neweqs);
break;
default:
cerr << "DynamicModel::substituteLeadLagInternal: impossible case" << endl;
exit(EXIT_FAILURE);
}
BinaryOpNode *substeq = dynamic_cast<BinaryOpNode *>(subst);
assert(substeq != NULL);