squash another compiler warning

This commit is contained in:
Joe Thornber 2014-09-08 11:07:46 +01:00
parent 2331204475
commit 5fe9039d38

View File

@ -100,8 +100,11 @@ namespace base {
else { else {
typename rset::const_iterator b = runs_.begin(); typename rset::const_iterator b = runs_.begin();
// Some versions of gcc give a spurious warning here. // Some versions of gcc give a spurious
maybe last = b->end_; // warning here. So we initialize it to
// get round it.
maybe last(0);
last = b->end_;
if (b->begin_) if (b->begin_)
replacement.insert(run<T>(maybe(), *(b->begin_))); replacement.insert(run<T>(maybe(), *(b->begin_)));