Changeset 206169 in webkit


Ignore:
Timestamp:
Sep 20, 2016 1:25:03 PM (8 years ago)
Author:
achristensen@apple.com
Message:

URLParser: uidna_IDNToASCII_56 is deprecated
https://bugs.webkit.org/show_bug.cgi?id=161841

Patch by Michael Catanzaro <Michael Catanzaro> on 2016-09-20
Reviewed by Alex Christensen.

Add pragmas to silence the warning, plus a FIXME.

  • platform/URLParser.cpp:

(WebCore::domainToASCII):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r206168 r206169  
     12016-09-20  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        URLParser: uidna_IDNToASCII_56 is deprecated
     4        https://bugs.webkit.org/show_bug.cgi?id=161841
     5
     6        Reviewed by Alex Christensen.
     7
     8        Add pragmas to silence the warning, plus a FIXME.
     9
     10        * platform/URLParser.cpp:
     11        (WebCore::domainToASCII):
     12
    1132016-09-20  Alex Christensen  <achristensen@webkit.org>
    214
  • trunk/Source/WebCore/platform/URLParser.cpp

    r206162 r206169  
    19721972    UChar hostnameBuffer[hostnameBufferLength];
    19731973    UErrorCode error = U_ZERO_ERROR;
    1974    
     1974
     1975#if COMPILER(GCC) || COMPILER(CLANG)
     1976#pragma GCC diagnostic push
     1977#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
     1978#endif
     1979    // FIXME: This should use uidna_openUTS46 / uidna_close instead
    19751980    int32_t numCharactersConverted = uidna_IDNToASCII(StringView(domain).upconvertedCharacters(), domain.length(), hostnameBuffer, hostnameBufferLength, UIDNA_ALLOW_UNASSIGNED, nullptr, &error);
     1981#if COMPILER(GCC) || COMPILER(CLANG)
     1982#pragma GCC diagnostic pop
     1983#endif
    19761984
    19771985    if (error == U_ZERO_ERROR) {
Note: See TracChangeset for help on using the changeset viewer.