mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 02:46:49 +00:00
Silence warnings about unused result.
Introduce a DISCARD macro to ignore the warn_unused_result attribute used by Spidermonkey, and reuse it elsewhere. Differential Revision: https://code.wildfiregames.com/D3147 This was SVN commit r24261.
This commit is contained in:
@@ -403,7 +403,7 @@ InReaction IGUIObject::SendMouseEvent(EGUIMessageType type, const CStr& eventNam
|
||||
"y", mousePos.y,
|
||||
"buttons", m_pGUI.GetMouseButtons());
|
||||
JS::AutoValueVector paramData(rq.cx);
|
||||
(void)paramData.append(mouse);
|
||||
DISCARD paramData.append(mouse);
|
||||
ScriptEvent(eventName, paramData);
|
||||
|
||||
return msg.skipped ? IN_PASS : IN_HANDLED;
|
||||
|
||||
Reference in New Issue
Block a user