Project

General

Profile

Bug #8234

rpcib: 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-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Building with gcc 6:

../../common/rpc/rpcib.c: In function 'rib_disconnect_channel':
../../common/rpc/rpcib.c:2058:3: error: this 'while' clause does not guard... [-Werror=misleading-indentation]
   while (qp->n_send_rbufs)
   ^~~~~
../../common/rpc/rpcib.c:2060:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
    mutex_exit(&qp->send_rbufs_lock);
    ^~~~~~~~~~
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 795dfd20deca1239c237f91ce567b122866a30ac

commit  795dfd20deca1239c237f91ce567b122866a30ac
Author: Toomas Soome <tsoome@me.com>
Date:   2017-05-23T00:24:53.000Z

    8234 rpcib: misleading-indentation
    Reviewed by: Yuri Pankov <yuri.pankov@gmail.com>
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Approved by: Gordon Ross <gordon.w.ross@gmail.com>

Also available in: Atom PDF