[Webkit-unassigned] [Bug 226167] New: GCC complains about a memcpy in SmallSet.h
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 24 00:57:16 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=226167
Bug ID: 226167
Summary: GCC complains about a memcpy in SmallSet.h
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: estea at igalia.com
GCC complains about a memcpy in SmallSet.h It seems that it contains an object with no trivial copy-assignment. We'd rather eplace the memcpy with assignments of the private members.
Error:
WTF/Headers/wtf/SmallSet.h:70:15: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘class WTF::SmallSet<WTF::UniquedStringImpl*’ with no trivial copy-assignment [-Wclass-memaccess]
70 | memcpy(this, &other, sizeof(SmallSet));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WTF/Headers/wtf/SmallSet.h:44:7: note: ‘class WTF::SmallSet<WTF::UniquedStringImpl*>’ declared here
44 | class SmallSet {
--
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/20210524/903b7209/attachment.htm>
More information about the webkit-unassigned
mailing list