Project

General

Profile

Bug #8336

ed: misleading-indentation

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

ed.c: In function 'strequal':
ed.c:3076:3: error: this 'while' clause does not guard... [-Werror=misleading-indentation]
   while (*scan++);
   ^~~~~
ed.c:3077:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
    *scan1 = scan;
    ^
cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk almost 3 years ago

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

git commit 02553f55739fa960255c83b5c09351e2fa244ba2

commit  02553f55739fa960255c83b5c09351e2fa244ba2
Author: Toomas Soome <tsoome@me.com>
Date:   2017-06-21T13:58:41.000Z

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

Also available in: Atom PDF