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

Also available in: Atom PDF