8851 libast: parameter/variable set but not used

Review Request #777 — Created Nov. 21, 2017 and submitted

tsoome
illumos-gate
8851
d81e5ee...
general
../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


andy_js
  1. I wouldn't touch the ast stuff either.

  2. 
      
yuripv
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...