[Webkit-unassigned] [Bug 193379] New: va_start using non-POD-type
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Jan 12 03:26:35 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=193379
Bug ID: 193379
Summary: va_start using non-POD-type
Product: WebKit
Version: Other
Hardware: All
OS: Other
Status: NEW
Severity: Major
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: tk at giga.or.at
webkitgtk-2.22.25/Source/WebCore/platform/LocalizedStrings.cpp has as line 70
va_start(arguments, format);
The format argument is of type WTF::String.
clang 7.0.0 on NetBSD fails to compile this with the error message:
cannot pass object of non-trivial type 'WTF::String' through variadic function; call will abort at runtime [-Wnon-pod-varargs]
I've asked around and been told that the standard says that the argument must be a POD type, i.e. is not allowed to have a ctor or dtor, and that one possible workaround is to pass the argument as a pointer.
--
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/20190112/c3579bf3/attachment.html>
More information about the webkit-unassigned
mailing list