[PATCH 00/12] Fix Unchecked return value from library errors

Ryan Long thisisryanlong at gmail.com
Thu Mar 4 14:05:01 UTC 2021


Hi,

Here are the fixes for the "Unchecked return value from library"
Coverity errors. For most of these, I added a status code variable,
returned the value, and used the _Assert_Unused_variable_equal/unequal
macros. For main_help.c, a (void) was just added because we don't care
about the value that is returned.

Ryan

Ryan Long (12):
  gen_uuid.c: Fix two Unchecked return value from library errors
  main_chmod.c: Fix Unchecked return value from library (CID #1063856)
  pwdgrp.c: Fix Unchecked return value from library (CID #1255518)
  gr_rasta_spw_router.c: Fix Unchecked return value from library (CID
    #1399760)
  gr_rasta_io.c: Fix Unchecked return value from library (CID #1399763)
  gr_leon4_n2x.c: Fix Unchecked return value from library (CID #1399767)
  gr_rasta_tmtc.c: Fix Unchecked return value from library (CID
    #1399771)
  gr_rasta_tmtc.c: Fix Unchecked return value from library (CID
    #1399780)
  gr_701.c: Unchecked return value from library (CID #1399783)
  gr_tmtc_1553.c: Unchecked return value from library (CID #1399785)
  gr_cpci_gr740.c: Unchecked return value from library (CID #1437630)
  main_help.c: Unchecked return value from library (CID #1437650)

 bsps/shared/grlib/pci/gr_701.c              |  4 +++-
 bsps/shared/grlib/pci/gr_rasta_adcdac.c     |  4 +++-
 bsps/shared/grlib/pci/gr_rasta_io.c         |  4 +++-
 bsps/shared/grlib/pci/gr_rasta_spw_router.c |  4 +++-
 bsps/shared/grlib/pci/gr_rasta_tmtc.c       |  4 +++-
 bsps/shared/grlib/pci/gr_tmtc_1553.c        |  4 +++-
 bsps/sparc/shared/pci/gr_cpci_gr740.c       |  4 +++-
 bsps/sparc/shared/pci/gr_leon4_n2x.c        |  4 +++-
 cpukit/libcsupport/src/pwdgrp.c             |  6 +++++-
 cpukit/libmisc/shell/main_chmod.c           |  5 ++++-
 cpukit/libmisc/shell/main_help.c            |  3 ++-
 cpukit/libmisc/uuid/gen_uuid.c              | 12 ++++++++++--
 12 files changed, 45 insertions(+), 13 deletions(-)

-- 
1.8.3.1



More information about the devel mailing list