[Webkit-unassigned] [Bug 189612] [Win][Clang][WebKitLegacy] error: cannot pass object of non-trivial type through variadic function

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 13 20:24:52 PDT 2018


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

--- Comment #1 from Fujii Hironori <Hironori.Fujii at sony.com> ---
MSVC reports compilation warnings.

> 1>------ Build started: Project: WebKitLegacy (WebKitLegacy\WebKitLegacy), Configuration: Debug x64 ------
> 1>DefaultPolicyDelegate.cpp
> 1>c:\webkit\ga\source\webkitlegacy\win\defaultpolicydelegate.cpp(182): warning C4840: non-portable use of class 'WebCore::BString' as an argument to a variadic function
> 1>c:\webkit\ga\source\webkitlegacy\win\defaultpolicydelegate.cpp(182): note: 'WebCore::BString::BString' is non-trivial
> 1>c:\webkit\ga\webkitbuild\debug\derivedsources\forwardingheaders\webcore\bstring.h(61): note: see declaration of 'WebCore::BString::BString'
> 1>c:\webkit\ga\source\webkitlegacy\win\defaultpolicydelegate.cpp(182): note: the constructor and destructor will not be called; a bitwise copy of the class will be passed as the argument
> 1>c:\webkit\ga\webkitbuild\debug\derivedsources\forwardingheaders\webcore\bstring.h(45): note: see declaration of 'WebCore::BString'
> 1>Done building project "WebKitLegacy.vcxproj".
> ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

> 1>------ Build started: Project: WebKitLegacy (WebKitLegacy\WebKitLegacy), Configuration: Debug x64 ------
> 1>WebLocalizableStrings.cpp
> 1>c:\webkit\ga\source\webkitlegacy\win\weblocalizablestrings.cpp(164): warning C4840: non-portable use of class 'WTF::String' as an argument to a variadic function
> 1>c:\webkit\ga\source\webkitlegacy\win\weblocalizablestrings.cpp(164): note: 'WTF::String::String' is non-trivial
> 1>c:\webkit\ga\webkitbuild\debug\derivedsources\forwardingheaders\wtf\text\wtfstring.h(130): note: see declaration of 'WTF::String::String'
> 1>c:\webkit\ga\source\webkitlegacy\win\weblocalizablestrings.cpp(164): note: the constructor and destructor will not be called; a bitwise copy of the class will be passed as the argument
> 1>c:\webkit\ga\webkitbuild\debug\derivedsources\forwardingheaders\wtf\text\wtfstring.h(78): note: see declaration of 'WTF::String'
> 1>Done building project "WebKitLegacy.vcxproj".
> ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

-- 
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/20180914/558c3f88/attachment-0001.html>


More information about the webkit-unassigned mailing list