Project

General

Profile

Actions

Bug #8851

closed

libast: parameter/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-21
Due date:
% Done:

100%

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

Description

Debug build error from gcc 6:

    ../common/cdt/dtview.c:41:12: error: variable 'lk' set but not used [-Werror=unused-but-set-variable]
      int  cmp, lk, sz, ky;
                ^~
    ../common/disc/sfdcfilter.c: In function 'filterseek':
    ../common/disc/sfdcfilter.c:115:35: error: parameter 'f' set but not used [-Werror=unused-but-set-parameter]
     static Sfoff_t filterseek(Sfio_t* f, Sfoff_t addr, int offset, Sfdisc_t* disc)
                                       ^
    ../common/disc/sfdcfilter.c:115:46: error: parameter 'addr' set but not used [-Werror=unused-but-set-parameter]
     static Sfoff_t filterseek(Sfio_t* f, Sfoff_t addr, int offset, Sfdisc_t* disc)
                                                  ^~~~
    ../common/disc/sfdcfilter.c:115:56: error: parameter 'offset' set but not used [-Werror=unused-but-set-parameter]
     static Sfoff_t filterseek(Sfio_t* f, Sfoff_t addr, int offset, Sfdisc_t* disc)
                                                            ^~~~~~
    ../common/disc/sfdcfilter.c:115:74: error: parameter 'disc' set but not used [-Werror=unused-but-set-parameter]
     static Sfoff_t filterseek(Sfio_t* f, Sfoff_t addr, int offset, Sfdisc_t* disc)
                                                                              ^~~~
    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 10fb0c97e3ab2d7cb9ece84c177e49668137d68f

commit  10fb0c97e3ab2d7cb9ece84c177e49668137d68f
Author: Toomas Soome <tsoome@me.com>
Date:   2017-11-27T16:21:29.000Z

    8851 libast: parameter/variable set but not used
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF