forked from HowardHinnant/date
Silence a few warnings on VS.
This commit is contained in:
11
tz.cpp
11
tz.cpp
@@ -161,8 +161,9 @@ MonthDayTime::day() const
|
||||
return date::day{31};
|
||||
case lteq:
|
||||
case gteq:
|
||||
return u.month_day_weekday_.month_day_.day();
|
||||
break;
|
||||
}
|
||||
return u.month_day_weekday_.month_day_.day();
|
||||
}
|
||||
|
||||
date::month
|
||||
@@ -176,8 +177,9 @@ MonthDayTime::month() const
|
||||
return u.month_weekday_last_.month();
|
||||
case lteq:
|
||||
case gteq:
|
||||
return u.month_day_weekday_.month_day_.month();
|
||||
break;
|
||||
}
|
||||
return u.month_day_weekday_.month_day_.month();
|
||||
}
|
||||
|
||||
int
|
||||
@@ -276,14 +278,13 @@ MonthDayTime::to_day_point(date::year y) const
|
||||
return day_point(x) - (wd1-wd0);
|
||||
}
|
||||
case gteq:
|
||||
{
|
||||
break;
|
||||
}
|
||||
auto const x = y/u.month_day_weekday_.month_day_;
|
||||
auto const wd1 = u.month_day_weekday_.weekday_;
|
||||
auto const wd0 = weekday(x);
|
||||
return day_point(x) + (wd1-wd0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
seconds_point
|
||||
MonthDayTime::to_time_point(date::year y) const
|
||||
|
Reference in New Issue
Block a user