Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner authored Sep 17, 2023
1 parent b4cf172 commit 649ca8e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/JavaScriptCore/runtime/JSDateMath-v8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ int DateParser::ReadMilliseconds(DateToken token)

// https://github.com/v8/v8/blob/c45b7804109ece574f71fd45417b4ad498a99e6f/src/date/dateparser-inl.h#L16
// template<typename Char>
bool DateParser::Parse(void* isolate, const char* str, size_t size, double* out)
bool DateParser::Parse(void*, const char* str, size_t size, double* out)
{
InputReader in(str, size);
DateStringTokenizer scanner(&in);
Expand Down Expand Up @@ -747,11 +747,11 @@ bool DateParser::Parse(void* isolate, const char* str, size_t size, double* out)
return false;
bool has_read_number = !day.IsEmpty();
// If there's anything left, continue with the legacy parser.
bool legacy_parser = false;
// bool legacy_parser = false;
for (DateToken token = next_unhandled_token; !token.IsEndOfInput();
token = scanner.Next()) {
if (token.IsNumber()) {
legacy_parser = true;
// legacy_parser = true;
has_read_number = true;
int n = token.number();
if (scanner.SkipSymbol(':')) {
Expand Down Expand Up @@ -791,7 +791,7 @@ bool DateParser::Parse(void* isolate, const char* str, size_t size, double* out)
scanner.SkipSymbol('-');
}
} else if (token.IsKeyword()) {
legacy_parser = true;
// legacy_parser = true;
// Parse a "word" (sequence of chars. >= 'A').
KeywordType type = token.keyword_type();
int value = token.keyword_value();
Expand All @@ -812,7 +812,7 @@ bool DateParser::Parse(void* isolate, const char* str, size_t size, double* out)
return false;
}
} else if (token.IsAsciiSign() && (tz.IsUTC() || !time.IsEmpty())) {
legacy_parser = true;
// legacy_parser = true;
// Parse UTC offset (only after UTC or time).
tz.SetSign(token.ascii_sign());
// The following number may be empty.
Expand Down Expand Up @@ -1170,4 +1170,4 @@ double ParseDateTimeString(const char* str, size_t size, bool& local)
return date;
}

} // namespace v8
} // namespace v8

0 comments on commit 649ca8e

Please sign in to comment.