[Webkit-unassigned] [Bug 191960] New: [Win][Clang] SOFT_LINK reports warning: implicit conversion between pointer-to-function and pointer-to-object is a Microsoft extension [-Wmicrosoft-cast]

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Nov 25 21:41:10 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=191960

            Bug ID: 191960
           Summary: [Win][Clang] SOFT_LINK reports warning: implicit
                    conversion between pointer-to-function and
                    pointer-to-object is a Microsoft extension
                    [-Wmicrosoft-cast]
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: Hironori.Fujii at sony.com
            Blocks: 171618

[Win][Clang] SOFT_LINK reports warning: implicit conversion between pointer-to-function and pointer-to-object is a Microsoft extension [-Wmicrosoft-cast]

clang-cl reports following warnings:

> [5018/6237] Building CXX object Source\WebCore\CMakeFiles\WebCore.dir\rendering\RenderThemeWin.cpp.obj
> ..\..\Source\WebCore\rendering\RenderThemeWin.cpp(151,1):  warning: implicit conversion between pointer-to-function and pointer-to-object is a Microsoft extension [-Wmicrosoft-cast]
> SOFT_LINK(uxtheme, OpenThemeData, HANDLE, WINAPI, (HWND hwnd, LPCWSTR pszClassList), (hwnd, pszClassList))
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> DerivedSources\ForwardingHeaders\wtf/win/SoftLinking.h(51,124):  note: expanded from macro 'SOFT_LINK'
>             softLink##functionName = reinterpret_cast<resultType(callingConvention*)parameterDeclarations>(::EncodePointer(SOFT_LINK_GETPROCADDRESS(library##Library(), #functionName))); \
>                                                                                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> DerivedSources\ForwardingHeaders\wtf/win/SoftLinking.h(39,34):  note: expanded from macro 'SOFT_LINK_GETPROCADDRESS'
> #define SOFT_LINK_GETPROCADDRESS GetProcAddress
>                                  ^
> ..\..\Source\WebCore\rendering\RenderThemeWin.cpp(151,1):  warning: implicit conversion between pointer-to-function and pointer-to-object is a Microsoft extension [-Wmicrosoft-cast]
> SOFT_LINK(uxtheme, OpenThemeData, HANDLE, WINAPI, (HWND hwnd, LPCWSTR pszClassList), (hwnd, pszClassList))
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> DerivedSources\ForwardingHeaders\wtf/win/SoftLinking.h(52,104):  note: expanded from macro 'SOFT_LINK'
>         return reinterpret_cast<resultType (callingConvention*) parameterDeclarations>(::DecodePointer(softLink##functionName)) parameterNames; \
>                                                                                                        ^~~~~~~~~~~~~~~~~~~~~~
> <scratch space>(239,1):  note: expanded from here
> softLinkOpenThemeData
> ^~~~~~~~~~~~~~~~~~~~~


> ..\..\Source\WebKitLegacy\win\WebView.cpp(221,1):  warning: implicit conversion between pointer-to-function and pointer-to-object is a Microsoft extension [-Wmicrosoft-cast]
> SOFT_LINK_OPTIONAL(USER32, GetGestureInfo, BOOL, WINAPI, (HGESTUREINFO, PGESTUREINFO));
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> DerivedSources\ForwardingHeaders\wtf/win/SoftLinking.h(63,75):  note: expanded from macro 'SOFT_LINK_OPTIONAL'
>             ptr = reinterpret_cast<functionName##PtrType>(::EncodePointer(SOFT_LINK_GETPROCADDRESS(library##Library(), #functionName))); \
>                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> DerivedSources\ForwardingHeaders\wtf/win/SoftLinking.h(39,34):  note: expanded from macro 'SOFT_LINK_GETPROCADDRESS'
> #define SOFT_LINK_GETPROCADDRESS GetProcAddress
>                                  ^


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=171618
[Bug 171618] [Win][Meta] Build WebKit using Clang
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181126/bdd7bc81/attachment-0001.html>


More information about the webkit-unassigned mailing list