Coverity Unchecked Return Value Issues

Joel Sherrill joel at
Mon Feb 8 18:23:45 UTC 2021


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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the devel mailing list