Project

General

Profile

Actions

Bug #8826

closed

libnisdb: variable set but not used

Added by Toomas Soome almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2017-11-20
Due date:
% Done:

100%

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

Description

Debug build error from gcc 6:

    ldap_map.c:56:10: error: variable 'type' set but not used [-Werror=unused-but-set-variable]
      zotypes type;
              ^~~~
    ldap_map.c: In function 'verifyIndexMatch':
    ldap_map.c:1133:7: error: variable 'len' set but not used [-Werror=unused-but-set-variable]
       int len = 0;
           ^~~
    ldap_map.c: In function 'selectTableMapping':
    ldap_map.c:1243:25: error: variable 'r' set but not used [-Werror=unused-but-set-variable]
      __nis_table_mapping_t *r, *x, **tp;
                             ^
    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 4b44494bc0063e420eaa97f89cac1d1ff036c9da

commit  4b44494bc0063e420eaa97f89cac1d1ff036c9da
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-23T11:41:16.000Z

    8826 libnisdb: variable set but not used
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Hans Rosenfeld <hans.rosenfeld@joyent.com>

Actions

Also available in: Atom PDF