⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 249682 in webkit


Ignore:
Timestamp:
Sep 9, 2019, 6:28:57 PM (7 years ago)
Author:
Fujii Hironori
Message:

[Win][WebKitLegacy] WebKitDLL.h(53,37): warning: 'gClassNameCount' has C-linkage specified, but returns user-defined type 'HashCountedSet<WTF::String> &' which is incompatible with C [-Wreturn-type-c-linkage]
https://bugs.webkit.org/show_bug.cgi?id=201601

Reviewed by Ross Kirsling.

Fixed a clang-cl warning. Names which aren't dllexport-ed don't
need to be in a extern "C" scope because they aren't exported to
other DLLs.

  • WebKitDLL.h: Moved some variables and gClassNameCount() out of extern "C" scope.
Location:
trunk/Source/WebKitLegacy/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKitLegacy/win/ChangeLog

    r249575 r249682  
     12019-09-09  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win][WebKitLegacy] WebKitDLL.h(53,37): warning: 'gClassNameCount' has C-linkage specified, but returns user-defined type 'HashCountedSet<WTF::String> &' which is incompatible with C [-Wreturn-type-c-linkage]
     4        https://bugs.webkit.org/show_bug.cgi?id=201601
     5
     6        Reviewed by Ross Kirsling.
     7
     8        Fixed a clang-cl warning. Names which aren't dllexport-ed don't
     9        need to be in a extern "C" scope because they aren't exported to
     10        other DLLs.
     11
     12        * WebKitDLL.h: Moved some variables and gClassNameCount() out of extern "C" scope.
     13
    1142019-09-06  Alex Christensen  <achristensen@webkit.org>
    215
  • trunk/Source/WebKitLegacy/win/WebKitDLL.h

    r213846 r249682  
    3737#include <wtf/text/WTFString.h>
    3838
     39extern ULONG gLockCount;
     40extern ULONG gClassCount;
     41extern HashCountedSet<WTF::String>& gClassNameCount();
     42extern HINSTANCE gInstance;
     43extern CLSID gRegCLSIDs[];
     44
    3945#ifndef WEBKIT_API
    4046#ifdef WEBKIT_EXPORTS
     
    4955#endif
    5056
    51 extern ULONG gLockCount;
    52 extern ULONG gClassCount;
    53 extern HashCountedSet<WTF::String>& gClassNameCount();
    54 extern HINSTANCE gInstance;
    55 extern CLSID gRegCLSIDs[];
    56 
    5757WEBKIT_API void shutDownWebKit();
    5858
Note: See TracChangeset for help on using the changeset viewer.