Project

General

Profile

Actions

Bug #8820

closed

pam_modules: variable set but not used

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

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

100%

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

Description

Debug mode build error from gcc 6:

    ../sample_acct_mgmt.c:57:6: error: variable 'nowarn' set but not used [-Werror=unused-but-set-variable]
      int nowarn = 0;
          ^~~~~~
    ../sample_acct_mgmt.c:55:6: error: variable 'debug' set but not used [-Werror=unused-but-set-variable]
      int debug = 0;
          ^~~~~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk almost 4 years ago

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

git commit ff7e8ba86ba6352405bed47d89bd49c659eb6871

commit  ff7e8ba86ba6352405bed47d89bd49c659eb6871
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-23T11:35:38.000Z

    8820 pam_modules: variable set but not used
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Hans Rosenfeld <hans.rosenfeld@joyent.com>

Actions

Also available in: Atom PDF