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
@@ -255,5 +255,5 @@ void CHeightMipmap::DumpToDisk(const VfsPath& filename) const
DynArray da;
WARN_IF_ERR(t.encode(filename.Extension(), &da));
g_VFS->CreateFile(filename, DummySharedPtr(da.base), da.pos);
(void)da_free(&da);
DISCARD da_free(&da);
}