8830 libshell: variable set but not used

Review Request #757 — Created Nov. 20, 2017 and submitted

tsoome
illumos-gate
8830
b93d0de...
general
../common/sh/xec.c: In function 'sh_ntfork':
../common/sh/xec.c:2980:13: error: variable 'savejobid' set but not used [-Werror=unused-but-set-variable]
  static int savejobid;
             ^~~~~~~~~

../common/sh/parse.c:1288:17: error: variable 'argmax' set but not used [-Werror=unused-but-set-variable]
  int argno = 0, argmax=0;
                 ^~~~~~

../common/bltins/misc.c:60:19: error: parameter 'argc' set but not used [-Werror=unused-but-set-parameter]
 int    b_exec(int argc,char *argv[], void *extra)
                   ^~~~

cc1: all warnings being treated as errors


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

Status: Closed (submitted)

Loading...