Project

General

Profile

Bug #7844

tools/protocmp: misleading indentenation in protodir.c

Added by Toomas Soome almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
2017-02-07
Due date:
% Done:

100%

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

Description

From gcc 6.3:
protodir.c:576:2: error: this 'while' clause does not guard... [-Werror=misleadi
ng-indentation]
while (fgets(buf, BUFSIZ, proto_fp))
^~~
protodir.c:617:3: note: ...this statement, but the latter is misleadingly indent
ed as if it is guarded by the 'while'
(void) fclose(proto_fp);
^

#1

Updated by Electric Monk almost 4 years ago

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

git commit b15586cfdcac4438b0685a400ad9b9fc4f0eee64

commit  b15586cfdcac4438b0685a400ad9b9fc4f0eee64
Author: Toomas Soome <tsoome@me.com>
Date:   2017-02-14T17:32:21.000Z

    7844 tools/protocmp: misleading indentenation in protodir.c
    Reviewed by: Yuri Pankov <yuri.pankov@gmail.com>
    Reviewed by: Jason King <jason.brian.king@gmail.com>
    Reviewed by: Richard Lowe <richlowe@richlowe.net>
    Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>

Also available in: Atom PDF