Project

General

Profile

Bug #8288

uts: common/os/cap_util.c has misleading indentation

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

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

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Building with gcc 6:

../../common/os/cap_util.c: In function 'cu_cpc_init':
../../common/os/cap_util.c:563:4: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
    if (cntr_info != NULL)
    ^~
../../common/os/cap_util.c:565:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     cntr_info_array[pg_hw_type] = NULL;
     ^~~~~~~~~~~~~~~
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 c18b20ad4fc1d3aff0273f3ab86b8e4c740a0e83

commit  c18b20ad4fc1d3aff0273f3ab86b8e4c740a0e83
Author: Toomas Soome <tsoome@me.com>
Date:   2017-06-02T17:48:22.000Z

    8288 uts: common/os/cap_util.c has misleading indentation
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: Jason King <jason.brian.king@gmail.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF