Project

General

Profile

Actions

Bug #8322

closed

nl: 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:

nl.c: In function 'main':
nl.c:342:6: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
      if (regerrno)
      ^~
nl.c:344:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
       break;
       ^~~~~
nl.c:376:6: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
      if (regerrno)
      ^~
nl.c:378:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
       break;
       ^~~~~
nl.c:410:6: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
      if (regerrno)
      ^~
nl.c:412:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
       break;
       ^~~~~
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 56849bc6aade3a04eb051dc383a2091c220385c4

commit  56849bc6aade3a04eb051dc383a2091c220385c4
Author: Toomas Soome <tsoome@me.com>
Date:   2017-06-13T14:52:39.000Z

    8322 nl: misleading-indentation
    Reviewed by: Jason King <jason.brian.king@gmail.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Gordon Ross <gwr@nexenta.com>

Actions

Also available in: Atom PDF