8324 more: misleading-indentation

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

Information
Toomas Soome
illumos-gate
8324
fead8dd...
Reviewers
general
more.c:1086:17: error: this 'while' clause does not guard... [-Werror=misleading-indentation]
                 while ((c = Getc (f)) != '\n')
                 ^~~~~
more.c:1092:21: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
                     Currline++;
                     ^~~~~~~~
more.c: In function 'skiplns':
more.c:1470:9: error: this 'while' clause does not guard... [-Werror=misleading-indentation]
         while ((c = Getc (f)) != '\n')
         ^~~~~
more.c:1473:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
             n--;
             ^
cc1: all warnings being treated as errors

tested by using f and s commands.

Robert Mustacchi
Alexander Pyhalov
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...