Project

General

Profile

Actions

Bug #8339

closed

col: misleading-indentation

Added by Toomas Soome over 6 years ago. Updated over 6 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:
External Bug:

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

Actions #1

Updated by Electric Monk over 6 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>

Actions

Also available in: Atom PDF