8196 captoinfo: misleading-indentation

Review Request #491 - Created May 10, 2017 and submitted

Information
Toomas Soome
illumos-gate
8196
ba0d0e8...
Reviewers
general
captoinfo.c: In function 'checktermcap':
captoinfo.c:227:4: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
    if (type != tbool && type != tcancel)
    ^~
captoinfo.c:232:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     continue;
     ^~~~~~~~
captoinfo.c:237:4: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
    if (type != tnum && type != tcancel)
    ^~
captoinfo.c:242:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     continue;
     ^~~~~~~~
captoinfo.c:247:4: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
    if (type != tstr && type != tcancel)
    ^~
captoinfo.c:252:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     continue;
     ^~~~~~~~
captoinfo.c: In function 'search':
captoinfo.c:469:2: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
  for (i = 0; names [i] != NULL; i++)
  ^~~
captoinfo.c:472:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   return (-1);
   ^~~~~~
captoinfo.c: In function 'fancycap':
captoinfo.c:1014:2: error: this 'while' clause does not guard... [-Werror=misleading-indentation]
  while (*string)
  ^~~~~
captoinfo.c:1040:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
   return (0);
   ^~~~~~
captoinfo.c: In function 'initdirname':
captoinfo.c:1368:2: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
  if (verbose)
  ^~
captoinfo.c:1370:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   environ = newenviron;
   ^~~~~~~
cc1: all warnings being treated as errors

  
Marcel Telka
Robert Mustacchi
Yuri Pankov
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...