Project

General

Profile

Actions

Bug #8771

closed

kadmin/kdcmgr: 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 build error with gcc 6:

    klookup.c: In function 'main':
    klookup.c:55:21: error: variable 'weight' set but not used [-Werror=unused-but-set-variable]
      int ttl, priority, weight, port, size;
                         ^~~~~~
    klookup.c:55:11: error: variable 'priority' set but not used [-Werror=unused-but-set-variable]
      int ttl, priority, weight, port, size;
               ^~~~~~~~
    klookup.c:55:6: error: variable 'ttl' set but not used [-Werror=unused-but-set-variable]
      int ttl, priority, weight, port, size;
          ^~~
    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 2f8bbd9dee64b0f32e2f0e385b450b0d7dca7e32

commit  2f8bbd9dee64b0f32e2f0e385b450b0d7dca7e32
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-14T16:23:10.000Z

    8771 kadmin/kdcmgr: variable set but not used
    Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
    Reviewed by: Alexander Pyhalov <apyhalov@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF