Project

General

Profile

Bug #8339

col: misleading-indentation

Added by Toomas Soome over 3 years ago. Updated over 3 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build error from gcc 6:

col.c:311:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
   if (*line != '\b')
   ^~
col.c:314:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    switch (*line) {
    ^~~~~~
cc1: all warnings being treated as errors

#1

Updated by Electric Monk over 3 years ago

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

git commit d1e7d21548ce47b73fb16ec24a71987ddef57a0e

commit  d1e7d21548ce47b73fb16ec24a71987ddef57a0e
Author: Toomas Soome <tsoome@me.com>
Date:   2017-07-10T17:55:16.000Z

    8339 col: misleading-indentation
    Reviewed by: Peter Tribble <peter.tribble@gmail.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: John Howard <Echosoft.LLC@gmail.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF