Minor cleanup and crank up warnings.

This commit is contained in:
Howard Hinnant
2015-10-27 12:14:30 -04:00
parent 333894fc9d
commit 819d2c3575
3 changed files with 2 additions and 5 deletions

2
date.h
View File

@@ -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}};
} }

View File

@@ -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
View File

@@ -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;