Core/Misc: Suppress GCC 14 false positive warning
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user