mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
Call memset on a void*, not a T*, in js_delete_poison to avoid memset-on-nontrivial warnings with gcc that don't matter for an object whose lifetime is about to end
This commit is contained in:
parent
fbef1917ad
commit
4d089648be
1 changed files with 1 additions and 1 deletions
|
|
@ -391,7 +391,7 @@ js_delete_poison(const T* p)
|
|||
{
|
||||
if (p) {
|
||||
p->~T();
|
||||
memset(const_cast<T*>(p), 0x3B, sizeof(T));
|
||||
memset(static_cast<void*>(const_cast<T*>(p)), 0x3B, sizeof(T));
|
||||
js_free(const_cast<T*>(p));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue