Project

General

Profile

Bug #8191

in.routed: 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-10
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Build with gcc 6:

table.c: In function 'sync_kern':
table.c:1477:4: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
    if (rp->ipRouteIfIndex.o_length <
    ^~
table.c:1481:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     (void) strncpy(ifname,
     ^
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 5cb835500e9cd5a521ccc0bbd3d2d15ea11a997f

commit  5cb835500e9cd5a521ccc0bbd3d2d15ea11a997f
Author: Toomas Soome <tsoome@me.com>
Date:   2017-05-30T18:04:36.000Z

    8191 in.routed: misleading-indentation
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF