Changeset 149794 in webkit


Ignore:
Timestamp:
May 8, 2013 11:39:22 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Fix some compiler warnings (miscellaneous)
https://bugs.webkit.org/show_bug.cgi?id=80790

Patch by Rob Buis <rbuis@rim.com> on 2013-05-08
Reviewed by Brent Fulgham.

Get rid of the following warning for BlackBerry:

NavigatorContentUtils.cpp:60:78: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]

by not compiling any of the code to add protocols to the protocol whitelist.

  • Modules/navigatorcontentutils/NavigatorContentUtils.cpp:

(WebCore::initProtocolHandlerWhitelist):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r149793 r149794  
     12013-05-08  Rob Buis  <rbuis@rim.com>
     2
     3        Fix some compiler warnings (miscellaneous)
     4        https://bugs.webkit.org/show_bug.cgi?id=80790
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Get rid of the following warning for BlackBerry:
     9
     10        NavigatorContentUtils.cpp:60:78: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
     11
     12        by not compiling any of the code to add protocols to the protocol whitelist.
     13
     14        * Modules/navigatorcontentutils/NavigatorContentUtils.cpp:
     15        (WebCore::initProtocolHandlerWhitelist):
     16
    1172013-05-08  peavo@outlook.com  <peavo@outlook.com>
    218
  • trunk/Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.cpp

    r140509 r149794  
    4444{
    4545    protocolWhitelist = new HashSet<String>;
     46#if !PLATFORM(BLACKBERRY)
    4647    static const char* protocols[] = {
    47 #if !PLATFORM(BLACKBERRY)
    4848        "irc",
    4949        "mailto",
     
    5656        "urn",
    5757        "webcal",
    58 #endif
    5958    };
    6059    for (size_t i = 0; i < WTF_ARRAY_LENGTH(protocols); ++i)
    6160        protocolWhitelist->add(protocols[i]);
     61#endif
    6262}
    6363
Note: See TracChangeset for help on using the changeset viewer.