Project

General

Profile

Actions

Bug #8822

closed

libsmbfs: variable set but not used

Added by Toomas Soome over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cifs - CIFS server and client
Start date:
2017-11-19
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Debug build error from gcc 6:

    /code/illumos-gate/usr/src/common/smbclnt/smbfs_ntacl.c:89:9: error: variable 'sz' set but not used [-Werror=unused-but-set-variable]
      size_t sz;
             ^~
    /code/illumos-gate/usr/src/common/smbclnt/smbfs_ntacl.c: In function 'ifree_acl':
    /code/illumos-gate/usr/src/common/smbclnt/smbfs_ntacl.c:310:9: error: variable 'sz' set but not used [-Werror=unused-but-set-variable]
      size_t sz;
             ^~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk over 4 years ago

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

git commit a1a46df055863a267eb7a80b7961c9379bc457ec

commit  a1a46df055863a267eb7a80b7961c9379bc457ec
Author: Toomas Soome <tsoome@me.com>
Date:   2017-12-13T19:37:28.000Z

    8822 libsmbfs: variable set but not used
    Reviewed by: Gary Mills <gary_mills@fastmail.fm>
    Reviewed by: ken mays <maybird1776@yahoo.com>
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF