8830 libshell: variable set but not used

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

Information
Toomas Soome
illumos-gate
8830
b93d0de...
Reviewers
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

  
Yuri Pankov
Alexander Pyhalov
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...