Changeset 215792 in webkit


Ignore:
Timestamp:
Apr 25, 2017 10:18:09 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Unhandled enumeration values in IntlDateTimeFormat.cpp
https://bugs.webkit.org/show_bug.cgi?id=171241

Patch by Andy VanWagoner <thetalecrafter@gmail.com> on 2017-04-25
Reviewed by JF Bastien.

Added some missing cases of the UDateFormatField to partTypeString,
and made them conditional to the ICU version that added them.
This should remove the warnings that appear on platform builds using the
newer system ICU headers.

  • runtime/IntlDateTimeFormat.cpp:

(JSC::IntlDateTimeFormat::partTypeString):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r215779 r215792  
     12017-04-25  Andy VanWagoner  <thetalecrafter@gmail.com>
     2
     3        Unhandled enumeration values in IntlDateTimeFormat.cpp
     4        https://bugs.webkit.org/show_bug.cgi?id=171241
     5
     6        Reviewed by JF Bastien.
     7
     8        Added some missing cases of the UDateFormatField to partTypeString,
     9        and made them conditional to the ICU version that added them.
     10        This should remove the warnings that appear on platform builds using the
     11        newer system ICU headers.
     12
     13        * runtime/IntlDateTimeFormat.cpp:
     14        (JSC::IntlDateTimeFormat::partTypeString):
     15
    1162017-04-25  Commit Queue  <commit-queue@webkit.org>
    217
  • trunk/Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp

    r215616 r215792  
    934934        return "weekday";
    935935    case UDAT_AM_PM_FIELD:
     936#if U_ICU_VERSION_MAJOR_NUM >= 57
     937    case UDAT_AM_PM_MIDNIGHT_NOON_FIELD:
     938    case UDAT_FLEXIBLE_DAY_PERIOD_FIELD:
     939#endif
    936940        return "dayPeriod";
    937941    case UDAT_TIMEZONE_FIELD:
Note: See TracChangeset for help on using the changeset viewer.