Project

General

Profile

Actions

Bug #8779

closed

mech_spnego: variable set but not used

Added by Toomas Soome over 6 years ago. Updated over 6 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Debug mode build error from gcc 6:

    ../mech/spnego_mech.c:1170:15: error: variable 'negHintsSize' set but not used [-Werror=unused-but-set-variable]
      unsigned int negHintsSize = 0;
                   ^~~~~~~~~~~~
    ../mech/spnego_mech.c: In function 'spnego_gss_accept_sec_context':
    ../mech/spnego_mech.c:1858:12: error: variable 'mechstat' set but not used [-Werror=unused-but-set-variable]
      OM_uint32 mechstat = GSS_S_FAILURE;
                ^~~~~~~~
    At top level:
    ../mech/spnego_mech.c:1118:27: error: 'gss_mech_krb5_wrong_oid' defined but not used [-Werror=unused-const-variable=]
     static const gss_OID_desc gss_mech_krb5_wrong_oid =
                               ^~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF