From c286981b3bf83c79554769df68b27415cee68d77 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Tue, 21 Nov 2017 10:07:31 -0500 Subject: [PATCH] Fix improper application of GCC diagnostic suppression --- include/date/date.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/date/date.h b/include/date/date.h index be50b42..9902b0c 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -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(index)) {} +#ifdef __GNUC__ # pragma GCC diagnostic pop #endif // __GNUC__