Project

General

Profile

Actions

Bug #8777

closed

krb5/plugins/kdb: variable set but not used

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

Description

Debug build error from gcc 6:

    ../hash/hash_page.c: In function '__kdb2_delpair':
    ../hash/hash_page.c:310:22: error: variable 'next_key' set but not used [-Werror=unused-but-set-variable]
      int16_t delta, len, next_key;
                          ^~~~~~~~

    ../hash/hash.c:332:10: error: variable 'nelem' set but not used [-Werror=unused-but-set-variable]
      int32_t nelem;
              ^~~~~
    ../hash/hash.c: In function 'hget_header':
    ../hash/hash.c:439:24: error: variable 'i' set but not used [-Werror=unused-but-set-variable]
      u_int32_t num_copied, i;
                            ^
    ../hash/hash_bigkey.c:199:12: error: variable 'bytes' set but not used [-Werror=unused-but-set-variable]
      u_int16_t bytes;
                ^~~~~

    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk over 3 years ago

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

git commit 495ee6847d0d3e288f47ba026d98a830e51cbc06

commit  495ee6847d0d3e288f47ba026d98a830e51cbc06
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-16T20:32:09.000Z

    8777 krb5/plugins/kdb: variable set but not used
    Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions

Also available in: Atom PDF