Compiler warning

This commit is contained in:
Kenneth Heafield 2014-03-17 07:18:11 -07:00
parent 6bbf437ff7
commit fc61084743

View File

@ -45,9 +45,7 @@ class ChartHypothesisRecombinationOrderer
public: public:
bool operator()(const ChartHypothesis* hypoA, const ChartHypothesis* hypoB) const { bool operator()(const ChartHypothesis* hypoA, const ChartHypothesis* hypoB) const {
// assert in same cell // assert in same cell
const WordsRange &rangeA = hypoA->GetCurrSourceRange() assert(hypoA->GetCurrSourceRange() == hypoB->GetCurrSourceRange());
, &rangeB = hypoB->GetCurrSourceRange();
assert(rangeA == rangeB);
// shouldn't be mixing hypos with different lhs // shouldn't be mixing hypos with different lhs
assert(hypoA->GetTargetLHS() == hypoB->GetTargetLHS()); assert(hypoA->GetTargetLHS() == hypoB->GetTargetLHS());