[Webkit-unassigned] [Bug 189575] New: [Win][Clang] error: type 'float' cannot be narrowed to 'LONG' (aka 'long') in initializer list in WheelEventWin.cpp
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 12 22:21:34 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=189575
Bug ID: 189575
Summary: [Win][Clang] error: type 'float' cannot be narrowed to
'LONG' (aka 'long') in initializer list in
WheelEventWin.cpp
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: Hironori.Fujii at sony.com
Blocks: 171618
[Win][Clang] error: type 'float' cannot be narrowed to 'LONG' (aka 'long') in initializer list in WheelEventWin.cpp
While doing Bug 171618, the following compilation errors are reported.
> [5/664] Building CXX object Source\WebCore\CMakeFiles\WebCore.dir\platform\win\WheelEventWin.cpp.obj
> FAILED: Source/WebCore/CMakeFiles/WebCore.dir/platform/win/WheelEventWin.cpp.obj
> C:\tools\llvm\bin\clang-cl.exe (...) -c ..\..\Source\WebCore\platform\win\WheelEventWin.cpp
> ..\..\Source\WebCore\platform\win\WheelEventWin.cpp(86,20): error: type 'float' cannot be narrowed to 'LONG' (aka 'long') in initializer list [-Wc++11-narrowing]
> POINT point = {location.x(), location.y()};
> ^~~~~~~~~~~~
> ..\..\Source\WebCore\platform\win\WheelEventWin.cpp(86,20): note: insert an explicit cast to silence this issue
> POINT point = {location.x(), location.y()};
> ^~~~~~~~~~~~
> static_cast<LONG>( )
> ..\..\Source\WebCore\platform\win\WheelEventWin.cpp(86,34): error: type 'float' cannot be narrowed to 'LONG' (aka 'long') in initializer list [-Wc++11-narrowing]
> POINT point = {location.x(), location.y()};
> ^~~~~~~~~~~~
> ..\..\Source\WebCore\platform\win\WheelEventWin.cpp(86,34): note: insert an explicit cast to silence this issue
> POINT point = {location.x(), location.y()};
> ^~~~~~~~~~~~
> static_cast<LONG>( )
> 2 errors generated.
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/20180913/b5b9755d/attachment-0001.html>
More information about the webkit-unassigned
mailing list