Project

General

Profile

Actions

Bug #8338

closed

format: 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-05
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Build error from gcc 6:

menu_command.c:2003:4: error: this 'for' clause does not guard... [-Werror=misleading-indentation]
    for (i = 0; i < NDKMAP; i++)
    ^~~
menu_command.c:2011:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
     parts->pinfo_map[i].dkl_nblk =
     ^~~~~
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 f600977f942717123ad27ccbe25fcbb5e830ca1b

commit  f600977f942717123ad27ccbe25fcbb5e830ca1b
Author: Toomas Soome <tsoome@me.com>
Date:   2017-06-12T00:01:06.000Z

    8338 format: misleading-indentation
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Actions

Also available in: Atom PDF