8845 libima: variable set but not used

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

tsoome
illumos-gate
8845
fdec75f...
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


yuripv
  1. Ship It!
  2. 
      
tsoome
andy_js
  1. I can live with this.

  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...