[PATCH 0/4] Fix Unchecked return value Coverity errors

Ryan Long thisisryanlong at gmail.com
Fri Feb 26 21:34:43 UTC 2021


Hi,

Here are some fixes for a few of the "Unchecked return value" Coverity
errors. Mainly, I just created a variable to store the status code returned 
from function calls and used the _Assert_Unused_variable_equals() macro
to assert that the call was successful. I also added a (void) in front
of the call to fsync() since that was getting flagged as well.

Thanks,
Ryan

Ryan Long (4):
  printertask.c: Fix Unchecked return value (CID #1399710)
  record-client.c: Fix Unchecked return value (CID #1456677)
  getgrent.c: Fix Unchecked return value error (CID #1459004)
  rtems-debugger-threads.c: Fix Unchecked return value error (CID
    #1468688)

 cpukit/libcsupport/src/getgrent.c           | 4 +++-
 cpukit/libcsupport/src/printertask.c        | 9 ++++++---
 cpukit/libdebugger/rtems-debugger-threads.c | 5 ++++-
 cpukit/libtrace/record/record-client.c      | 4 +++-
 4 files changed, 16 insertions(+), 6 deletions(-)

-- 
1.8.3.1



More information about the devel mailing list