8845 libima: variable set but not used

Review Request #771 - Created Nov. 21, 2017 and submitted

Information
Toomas Soome
illumos-gate
8845
fdec75f...
Reviewers
general
../common/ima-lib.c: In function 'os_obtainmutex':
../common/ima-lib.c:356:6: error: variable 'retVal' set but not used [-Werror=unused-but-set-variable]
  int retVal;
      ^~~~~~
../common/ima-lib.c: In function 'os_releasemutex':
../common/ima-lib.c:367:6: error: variable 'retVal' set but not used [-Werror=unused-but-set-variable]
  int retVal;
      ^~~~~~
../common/ima-lib.c: In function 'os_destroymutex':
../common/ima-lib.c:379:6: error: variable 'retVal' set but not used [-Werror=unused-but-set-variable]
  int retVal;
      ^~~~~~
../common/ima-lib.c: In function 'InitLibrary':
../common/ima-lib.c:478:16: error: variable 'status' set but not used [-Werror=unused-but-set-variable]
     IMA_STATUS status;
                ^~~~~~
../common/ima-lib.c:397:11: error: variable 'dwStrLength' set but not used [-Werror=unused-but-set-variable]
  IMA_UINT dwStrLength;
           ^~~~~~~~~~~
cc1: all warnings being treated as errors

  
Yuri Pankov
Toomas Soome
Andrew Stormont
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...