Project

General

Profile

Actions

Bug #8820

closed

pam_modules: variable set but not used

Added by Toomas Soome over 5 years ago. Updated over 5 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:
External Bug:

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