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:
wraitii
2020-11-26 13:58:59 +00:00
parent 22d1742311
commit eb7940b418
14 changed files with 55 additions and 49 deletions
+1 -1
View File
@@ -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;