8759 pkgadm: variable set but not used

Review Request #699 - Created Nov. 4, 2017 and submitted

Information
Toomas Soome
illumos-gate
8759
5bfe4ff...
Reviewers
general
lock.c: In function 'admin_lock':
lock.c:247:11: error: variable 'funcSigint' set but not used [-Werror=unused-but-set-variable]
  void   (*funcSigint)();
           ^~~~~~~~~~
lock.c:246:11: error: variable 'funcSighup' set but not used [-Werror=unused-but-set-variable]
  void   (*funcSighup)();
           ^~~~~~~~~~
lock.c: In function '_validateLock':
lock.c:1856:8: error: variable 'pls' set but not used [-Werror=unused-but-set-variable]
  long  pls;
        ^~~
lock.c:1855:9: error: variable 'pld' set but not used [-Werror=unused-but-set-variable]
  char  *pld;
         ^~~
cc1: all warnings being treated as errors

  
Peter Tribble
Toomas Soome
Peter Tribble
Robert Mustacchi
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...