mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-14 01:37:57 +08:00
Silence GCC conversion warning for bitfields
* Used only in weekday_indexed.
This commit is contained in:
parent
f4b12ab023
commit
9ca582d9da
@ -1877,6 +1877,10 @@ weekday_indexed::ok() const NOEXCEPT
|
||||
return weekday().ok() && 1 <= index_ && index_ <= 5;
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wconversion"
|
||||
|
||||
CONSTCD11
|
||||
inline
|
||||
weekday_indexed::weekday_indexed(const date::weekday& wd, unsigned index) NOEXCEPT
|
||||
@ -1884,6 +1888,9 @@ weekday_indexed::weekday_indexed(const date::weekday& wd, unsigned index) NOEXCE
|
||||
, index_(static_cast<decltype(index_)>(index))
|
||||
{}
|
||||
|
||||
# pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
|
||||
template<class CharT, class Traits>
|
||||
inline
|
||||
std::basic_ostream<CharT, Traits>&
|
||||
|
Loading…
x
Reference in New Issue
Block a user