Project

General

Profile

Actions

Bug #8325

closed

luxadm: 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:

adm.c: In function 'getaction':
adm.c:411:2: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
  if (! cmd || ! matches || ! retval ||
  ^~
adm.c:416:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
      while (matches->match) {
      ^~~~~
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 abedfe964699708e27107aa91adfbbd7d8a6a5b4

commit  abedfe964699708e27107aa91adfbbd7d8a6a5b4
Author: Toomas Soome <tsoome@me.com>
Date:   2017-06-12T00:24:33.000Z

    8325 luxadm: misleading-indentation
    Reviewed by: Peter Tribble <peter.tribble@gmail.com>
    Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF