From a1b19a2ed62df3e20651c46fa39459b630680e97 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Wed, 19 Jul 2017 15:25:57 -0400 Subject: [PATCH] Silence some warnings. --- date.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/date.h b/date.h index 46b9751..753e991 100644 --- a/date.h +++ b/date.h @@ -3537,7 +3537,7 @@ private: std::chrono::seconds s_; public: - CONSTCD11 decimal_format_seconds() : s_() {}; + CONSTCD11 decimal_format_seconds() : s_() {} CONSTCD11 explicit decimal_format_seconds(const precision& s) NOEXCEPT : s_(s) {} @@ -6175,10 +6175,10 @@ from_stream(std::basic_istream& is, const CharT* fmt, is.setstate(ios::eofbit); break; } - auto C = Traits::to_char_type(i); - auto c = static_cast(C); + auto wc = Traits::to_char_type(i); + auto c = static_cast(wc); // is c a valid time zone name or abbreviation character? - if (!(CharT{1} < C && C < CharT{127}) || !(isalnum(c) || + if (!(CharT{1} < wc && wc < CharT{127}) || !(isalnum(c) || c == '_' || c == '/' || c == '-' || c == '+')) break; temp_abbrev.push_back(c);