Silence a few warnings on VS.

This commit is contained in:
Howard Hinnant
2015-07-28 21:56:14 -04:00
parent 07361f9d86
commit a2c632bb5b

11
tz.cpp
View File

@@ -161,8 +161,9 @@ MonthDayTime::day() const
return date::day{31}; return date::day{31};
case lteq: case lteq:
case gteq: case gteq:
return u.month_day_weekday_.month_day_.day(); break;
} }
return u.month_day_weekday_.month_day_.day();
} }
date::month date::month
@@ -176,8 +177,9 @@ MonthDayTime::month() const
return u.month_weekday_last_.month(); return u.month_weekday_last_.month();
case lteq: case lteq:
case gteq: case gteq:
return u.month_day_weekday_.month_day_.month(); break;
} }
return u.month_day_weekday_.month_day_.month();
} }
int int
@@ -276,13 +278,12 @@ MonthDayTime::to_day_point(date::year y) const
return day_point(x) - (wd1-wd0); return day_point(x) - (wd1-wd0);
} }
case gteq: case gteq:
{ break;
}
auto const x = y/u.month_day_weekday_.month_day_; auto const x = y/u.month_day_weekday_.month_day_;
auto const wd1 = u.month_day_weekday_.weekday_; auto const wd1 = u.month_day_weekday_.weekday_;
auto const wd0 = weekday(x); auto const wd0 = weekday(x);
return day_point(x) + (wd1-wd0); return day_point(x) + (wd1-wd0);
}
}
} }
seconds_point seconds_point