Project

General

Profile

Actions

Bug #8336

closed

ed: misleading-indentation

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

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

Actions

Also available in: Atom PDF