Project

General

Profile

Bug #8188

tic: misleading-indentation

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2017-05-10
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Build error with gcc 6:

/code/illumos-gate/usr/src/cmd/tic/tic_main.c: In function 'check_dir':
/code/illumos-gate/usr/src/cmd/tic/tic_main.c:221:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
   if (mkdir(dir, 0755) < 0)
   ^~
/code/illumos-gate/usr/src/cmd/tic/tic_main.c:223:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    dirnames[dirletter] = 1;
    ^~~~~~~~
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 f86c22fea46252f35f4f262c9e5100ce1ccc9031

commit  f86c22fea46252f35f4f262c9e5100ce1ccc9031
Author: Toomas Soome <tsoome@me.com>
Date:   2017-05-11T16:16:22.000Z

    8188 tic: misleading-indentation
    Reviewed by: Jason King <jason.brian.king@gmail.com>
    Reviewed by: Yuri Pankov <yuri.pankov@gmail.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF