mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 08:31:03 +08:00
Silence some warnings.
This commit is contained in:
parent
496497d16e
commit
a1b19a2ed6
8
date.h
8
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<CharT, Traits>& is, const CharT* fmt,
|
||||
is.setstate(ios::eofbit);
|
||||
break;
|
||||
}
|
||||
auto C = Traits::to_char_type(i);
|
||||
auto c = static_cast<char>(C);
|
||||
auto wc = Traits::to_char_type(i);
|
||||
auto c = static_cast<char>(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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user