Project

General

Profile

Actions

Bug #8215

closed

print: 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-05-13
Due date:
% Done:

100%

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

Description

Building with gcc 6:

../common/attribute.c: In function 'papiAttributeFree':
../common/attribute.c:99:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
   if (attribute->values != NULL)
   ^~
../common/attribute.c:102:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    free(attribute);
    ^~~~
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 3cf7d3e96c394bb30710bd264c0bb61f4646639f

commit  3cf7d3e96c394bb30710bd264c0bb61f4646639f
Author: Toomas Soome <tsoome@me.com>
Date:   2017-05-15T14:21:41.000Z

    8215 print: misleading-indentation
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Reviewed by: Yuri Pankov <yuri.pankov@gmail.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Actions

Also available in: Atom PDF