Project

General

Profile

Actions

Bug #8845

closed

libima: variable set but not used

Added by Toomas Soome almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2017-11-21
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Debug build error from gcc 6:

../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

Actions #1

Updated by Electric Monk almost 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit df9cdf1096bbdb93cb9c2bb9d089a7804dc1d809

commit  df9cdf1096bbdb93cb9c2bb9d089a7804dc1d809
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-27T16:20:45.000Z

    8845 libima: variable set but not used
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF