Commit 97d65a00 authored by houtanb's avatar houtanb
Browse files

added default cases to remove gcc warnings

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3116 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 4784538a
......@@ -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);
......
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