Project

General

Profile

Bug #8296

tcopy: 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-28
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

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

History

#1

Updated by Electric Monk over 2 years ago

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

git commit bcb81701c49bee8a728b9a14ac9b6675854a7f25

commit  bcb81701c49bee8a728b9a14ac9b6675854a7f25
Author: Toomas Soome <tsoome@me.com>
Date:   2017-06-12T10:55:06.000Z

    8296 tcopy: misleading-indentation
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Igor Kozhukhov <igor@dilos.org>
    Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>

Also available in: Atom PDF