Project

General

Profile

Actions

Bug #8759

closed

pkgadm: variable set but not used

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2017-11-04
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

Debug mode build errors from gcc 6:

    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

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 4f39e64d5650b95d43882032f7d084ea6dcf110b

commit  4f39e64d5650b95d43882032f7d084ea6dcf110b
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-14T16:22:14.000Z

    8759 pkgadm: variable set but not used
    Reviewed by: Peter Tribble <peter.tribble@gmail.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF