Project

General

Profile

Bug #8187

nca: 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-09
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Building with gcc 6:

ncab2clf.c: In function 'read_n_bytes':
ncab2clf.c:477:4: error: this 'else' clause does not guard... [-Werror=misleading-indentation]
    else
    ^~~~
ncab2clf.c:482:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
     return (-1); /* some wierd interrupt */
     ^~~~~~
ncab2clf.c: In function 'write_n_bytes':
ncab2clf.c:512:4: error: this 'else' clause does not guard... [-Werror=misleading-indentation]
    else
    ^~~~
ncab2clf.c:517:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
     return (-1); /* some wierd interrupt */
     ^~~~~~
cc1: all warnings being treated as errors

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 2bdc5f35fb8aff91e8e39dc78e10a66b222bd08f

commit  2bdc5f35fb8aff91e8e39dc78e10a66b222bd08f
Author: Toomas Soome <tsoome@me.com>
Date:   2017-05-10T14:33:52.000Z

    8187 nca: misleading-indentation
    Reviewed by: Igor Kozhukhov <igor@dilos.org>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF