Mark function call as requiring void return; hint to tell coverity that we do not want the return value from this function (there's nothing we could do with it and the function should never fail with the input we provide).

This commit is contained in:
Richard Frith-Macdonald 2021-01-25 12:25:49 +00:00
parent 5ea20c1571
commit 747f47d83d

View file

@ -3179,8 +3179,8 @@ lossyCString_u(GSStr self)
unsigned l = 0;
unsigned char *r = 0;
GSFromUnicode(&r, &l, self->_contents.u, self->_count, externalEncoding,
NSDefaultMallocZone(), GSUniTemporary|GSUniTerminate);
(void)GSFromUnicode(&r, &l, self->_contents.u, self->_count,
externalEncoding, NSDefaultMallocZone(), GSUniTemporary|GSUniTerminate);
return (const char*)r;
}