Project

General

Profile

Actions

Bug #8779

closed

mech_spnego: 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-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 #1

Updated by Electric Monk almost 5 years ago

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

git commit 62ba43a590f5c5aad74961c6c0d2c1703599b40c

commit  62ba43a590f5c5aad74961c6c0d2c1703599b40c
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-10T18:51:41.000Z

    8779 mech_spnego: variable set but not used
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF