Project

General

Profile

Actions

Bug #8821

closed

smbsrv: error: variable 'dnptrs' set but not used

Added by Toomas Soome almost 5 years ago. Updated almost 5 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:
External Bug:

Description

Debug mode build error from gcc 6:

    ../common/smbns_netbios_name.c: In function 'smb_name_buf_from_packet':
    ../common/smbns_netbios_name.c:487:19: error: variable 'dnptrs' set but not used [-Werror=unused-but-set-variable]
      unsigned char   *dnptrs[32];
                       ^~~~~~
    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 942ab016774d03e12180dd0492e27e8227871a89

commit  942ab016774d03e12180dd0492e27e8227871a89
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-23T11:37:27.000Z

    8821 smbsrv: error: variable 'dnptrs' set but not used
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Approved by: Hans Rosenfeld <hans.rosenfeld@joyent.com>

Actions

Also available in: Atom PDF