Project

General

Profile

Actions

Bug #8157

closed

pg: misleading-indentation

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

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Build error from gcc 6:

pg.c:805:4: error: this 'while' clause does not guard... [-Werror=misleading-indentation]
    while (wait((int *)0) != id);
    ^~~~~
pg.c:806:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
    {
    ^
Actions #1

Updated by Electric Monk about 6 years ago

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

git commit 50fc488b67a064288c7872ea37c95d418a0f8624

commit  50fc488b67a064288c7872ea37c95d418a0f8624
Author: Toomas Soome <tsoome@me.com>
Date:   2017-05-06T19:05:50.000Z

    8157 pg: misleading-indentation
    Reviewed by: Jason King <jason.brian.king+illumos@gmail.com>
    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