forked from HowardHinnant/date
Minor cleanup and crank up warnings.
This commit is contained in:
2
date.h
2
date.h
@@ -2253,7 +2253,7 @@ year_month_day::operator day_point() const noexcept
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
auto const doe = yoe * 365 + yoe/4 - yoe/100 + doy; // [0, 146096]
|
auto const doe = yoe * 365 + yoe/4 - yoe/100 + doy; // [0, 146096]
|
||||||
return day_point{days{era * 146097 + static_cast<int>(doe) - 719468}};
|
return day_point{days{era * 146097 + static_cast<int>(doe) - 719468}};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -30,7 +30,7 @@ if [ -z "$CXX_LANG" ]
|
|||||||
then
|
then
|
||||||
CXX_LANG=c++14
|
CXX_LANG=c++14
|
||||||
fi
|
fi
|
||||||
OPTIONS="-std=${CXX_LANG} $OPTIONS -I$ROOT"
|
OPTIONS="-std=${CXX_LANG} $OPTIONS -I$ROOT -Wall"
|
||||||
|
|
||||||
case $TRIPLE in
|
case $TRIPLE in
|
||||||
*-*-mingw* | *-*-cygwin* | *-*-win*)
|
*-*-mingw* | *-*-cygwin* | *-*-win*)
|
||||||
|
3
tz.cpp
3
tz.cpp
@@ -1471,9 +1471,6 @@ find_rule_for_zone(const std::pair<const Rule*, const Rule*>& eqr,
|
|||||||
case tz::local:
|
case tz::local:
|
||||||
found = tp_loc < r->mdt().to_time_point(ry);
|
found = tp_loc < r->mdt().to_time_point(ry);
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
found = false;
|
|
||||||
assert(false);
|
|
||||||
}
|
}
|
||||||
if (found)
|
if (found)
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user