From 5fe9039d3875db6f6e548f6f6362a217778e1d76 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 8 Sep 2014 11:07:46 +0100 Subject: [PATCH] squash another compiler warning --- persistent-data/run_set.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/persistent-data/run_set.h b/persistent-data/run_set.h index b3098d6..68a5f46 100644 --- a/persistent-data/run_set.h +++ b/persistent-data/run_set.h @@ -100,8 +100,11 @@ namespace base { else { typename rset::const_iterator b = runs_.begin(); - // Some versions of gcc give a spurious warning here. - maybe last = b->end_; + // Some versions of gcc give a spurious + // warning here. So we initialize it to + // get round it. + maybe last(0); + last = b->end_; if (b->begin_) replacement.insert(run(maybe(), *(b->begin_)));