Project

General

Profile

Actions

Bug #8827

closed

libldap5: variable set but not used

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

Description

Debug build error from gcc 6:

    ../sources/ldap/common/tmplout.c: In function 'do_entry2text_search':
    ../sources/ldap/common/tmplout.c:451:25: error: variable 'html' set but not used [-Werror=unused-but-set-variable]
         int    err, freedn, html;
                             ^~~~
    ../sources/ldap/common/tmplout.c: In function 'searchaction':
    ../sources/ldap/common/tmplout.c:1042:41: error: variable 'selectname' set but not used [-Werror=unused-but-set-variable]
         char  *value, *filtpattern, *attr, *selectname;
                                             ^~~~~~~~~~
    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 13ddffeef026c03c1ddee21119335c00d6b7f3ae

commit  13ddffeef026c03c1ddee21119335c00d6b7f3ae
Author: Toomas Soome <tsoome@me.com>
Date:   2017-12-04T15:24:20.000Z

    8827 libldap5: variable set but not used
    Reviewed by: C Fraire <cfraire@me.com>
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF