Project

General

Profile

Actions

Bug #8324

closed

more: misleading-indentation

Added by Toomas Soome about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2017-06-04
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build error from gcc 6:

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

Actions #1

Updated by Electric Monk about 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit f53522305c07915a44e86f2455cc62e7aac27037

commit  f53522305c07915a44e86f2455cc62e7aac27037
Author: Toomas Soome <tsoome@me.com>
Date:   2017-06-07T14:22:06.000Z

    8324 more: misleading-indentation
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Alexander Pyhalov <alp@rsu.ru>
    Approved by: Gordon Ross <gwr@nexenta.com>

Actions

Also available in: Atom PDF