Project

General

Profile

Bug #8192

in.ndpd: 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:

main.c:1870:4: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
    if (pr->pr_state & PR_AUTO)
    ^~
main.c:1872:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     prefix_delete(pr);
     ^~~~~~~~~~~~~
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 e6301a35e2f110a678c6c67734f2d692a1c8a841

commit  e6301a35e2f110a678c6c67734f2d692a1c8a841
Author: Toomas Soome <tsoome@me.com>
Date:   2017-05-23T01:18:31.000Z

    8192 in.ndpd: misleading-indentation
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
    Approved by: Gordon Ross <gordon.w.ross@gmail.com>

Also available in: Atom PDF