Project

General

Profile

Actions

Bug #8296

closed

tcopy: misleading-indentation

Added by Toomas Soome over 4 years ago. Updated over 4 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Build fails with gcc 6:

tcopy.c: In function 'main':
tcopy.c:152:4: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
    if (ln > 0)
    ^~
tcopy.c:160:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     (void) printf("file %d: eof after %ld records:" 
     ^
cc1: all warnings being treated as errors
Actions

Also available in: Atom PDF