Project

General

Profile

Bug #8287

arn: misleading-indentation

Added by Toomas Soome over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2017-05-28
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Build error from gcc 6:

../../common/io/arn/arn_rc.c: In function 'arn_rc_valid_phyrate':
../../common/io/arn/arn_rc.c:524:2: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
  if (!ignore_cw && WLAN_RC_PHY_HT(phy))
  ^~
../../common/io/arn/arn_rc.c:527:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   if (!WLAN_RC_PHY_40(phy) && (capflag & WLAN_RC_40_FLAG))
   ^~
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 88811dae72594322206feacfdd588136aca40d65

commit  88811dae72594322206feacfdd588136aca40d65
Author: Toomas Soome <tsoome@me.com>
Date:   2017-06-11T16:33:52.000Z

    8287 arn: misleading-indentation
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Gordon Ross <gwr@nexenta.com>

Also available in: Atom PDF