Coverity Unchecked Return Value Issues
Joel Sherrill
joel at rtems.org
Mon Feb 8 18:23:45 UTC 2021
Hi
There are more than a couple of these. in our set of CIDs. I am wondering
if these can be addressed with a macro like this:
#define _IGNORED_RETURN_STATUS(_status, _ok) \
do { \
_Assert((_status) == (_ok)); \
(void) (_status);
} while (0);
Or _Assert_Ignored_return?
The ones I have looked at, the return value should always be successful but
there isn't any reason we can't be defensive about them.
Thoughts.
--joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210208/49a91608/attachment.html>
More information about the devel
mailing list