8327 logadm: misleading-indentation

Review Request #563 - Created June 4, 2017 and submitted

Information
Toomas Soome
illumos-gate
8327
e37ed35...
Reviewers
general
main.c: In function 'dologname':
main.c:546:3: error: this 'while' clause does not guard... [-Werror=misleading-indentation]
   while ((nextfnp = fn_list_next(logfiles)) != NULL)
   ^~~~~
main.c:548:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
    if (buf != NULL)
    ^~
main.c: In function 'expirefiles':
main.c:904:3: error: this 'while' clause does not guard... [-Werror=misleading-indentation]
   while ((nextfnp = fn_list_next(files)) != NULL)
   ^~~~~
main.c:906:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
    if (buf != NULL)
    ^~
cc1: all warnings being treated as errors

  
Robert Mustacchi
Gordon Ross
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...