mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 08:31:03 +08:00
Minor cleanup and crank up warnings.
This commit is contained in:
parent
333894fc9d
commit
819d2c3575
2
date.h
2
date.h
@ -2253,7 +2253,7 @@ year_month_day::operator day_point() const noexcept
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#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}};
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ if [ -z "$CXX_LANG" ]
|
||||
then
|
||||
CXX_LANG=c++14
|
||||
fi
|
||||
OPTIONS="-std=${CXX_LANG} $OPTIONS -I$ROOT"
|
||||
OPTIONS="-std=${CXX_LANG} $OPTIONS -I$ROOT -Wall"
|
||||
|
||||
case $TRIPLE in
|
||||
*-*-mingw* | *-*-cygwin* | *-*-win*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user