mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user