Project

General

Profile

Actions

Bug #8321

closed

passmgmt: misleading-indentation

Added by Toomas Soome about 5 years ago. Updated about 5 years ago.

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

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build error from gcc 6:

passmgmt.c: In function 'main':
passmgmt.c:445:4: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
    if (strlen(optarg) > (size_t)CMT_SIZE ||
    ^~
passmgmt.c:449:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     optn_mask |= C_MASK;
     ^~~~~~~~~
cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk about 5 years ago

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

git commit 8b0dcb133967b853a15366312ca67b3408be89fd

commit  8b0dcb133967b853a15366312ca67b3408be89fd
Author: Toomas Soome <tsoome@me.com>
Date:   2017-06-11T19:55:48.000Z

    8321 passmgmt: misleading-indentation
    Reviewed by: Igor Kozhukhov <igor@dilos.org>
    Reviewed by: Peter Tribble <peter.tribble@gmail.com>
    Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

Actions

Also available in: Atom PDF