Project

General

Profile

Bug #8157

pg: misleading-indentation

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

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'
    {
    ^

History

#1

Updated by Electric Monk over 2 years ago

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

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>

Also available in: Atom PDF