Fix improper application of GCC diagnostic suppression

This commit is contained in:
Howard Hinnant 2017-11-21 10:07:31 -05:00
parent 9ca582d9da
commit c286981b3b

View File

@ -1880,6 +1880,7 @@ weekday_indexed::ok() const NOEXCEPT
#ifdef __GNUC__ #ifdef __GNUC__
# pragma GCC diagnostic push # pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wconversion" # pragma GCC diagnostic ignored "-Wconversion"
#endif // __GNUC__
CONSTCD11 CONSTCD11
inline inline
@ -1888,6 +1889,7 @@ weekday_indexed::weekday_indexed(const date::weekday& wd, unsigned index) NOEXCE
, index_(static_cast<decltype(index_)>(index)) , index_(static_cast<decltype(index_)>(index))
{} {}
#ifdef __GNUC__
# pragma GCC diagnostic pop # pragma GCC diagnostic pop
#endif // __GNUC__ #endif // __GNUC__