Core/Misc: Suppress GCC 14 false positive warning

This commit is contained in:
luis
2026-11-20 06:46:10 -03:00
parent f5076cfe03
commit 48b8fe13c8
2 changed files with 8 additions and 2 deletions
@@ -803,6 +803,12 @@ WorldPacket const* SplashScreenShowLatest::Write()
return &_worldPacket;
}
// Placed here to suppress false positive GCC warning
// warning: 'void operator delete(void*)' called on unallocated object 'displayToast' [-Wfree-nonheap-object]
DisplayToast::DisplayToast() : ServerPacket(SMSG_DISPLAY_TOAST)
{
}
WorldPacket const* DisplayToast::Write()
{
_worldPacket << uint64(Quantity);
+2 -2
View File
@@ -1028,7 +1028,7 @@ namespace WorldPackets
class DisplayToast final : public ServerPacket
{
public:
explicit DisplayToast() : ServerPacket(SMSG_DISPLAY_TOAST) { }
explicit DisplayToast();
WorldPacket const* Write() override;
@@ -1543,7 +1543,7 @@ namespace WorldPackets
};
// Floats a server-authored, already-formatted string in the 3D world (the
// engine behind the Lua AddWorldText / AddCustomWorldText bindings) — not a
// engine behind the Lua AddWorldText / AddCustomWorldText bindings) ? not a
// chat line or combat-text entry. The client formats the string tokens with
// Arg1/Arg2 and raises no Lua event, so the display string is entirely the
// server's to compose. Retail uses it for "+XP", "+Gold" and "+Neighborly"