mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-26 16:01:04 +08:00
Fix improper application of GCC diagnostic suppression
This commit is contained in:
parent
9ca582d9da
commit
c286981b3b
@ -1880,6 +1880,7 @@ weekday_indexed::ok() const NOEXCEPT
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wconversion"
|
||||
#endif // __GNUC__
|
||||
|
||||
CONSTCD11
|
||||
inline
|
||||
@ -1888,6 +1889,7 @@ weekday_indexed::weekday_indexed(const date::weekday& wd, unsigned index) NOEXCE
|
||||
, index_(static_cast<decltype(index_)>(index))
|
||||
{}
|
||||
|
||||
#ifdef __GNUC__
|
||||
# pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user