Project

General

Profile

Actions

Bug #8315

closed

sendmail: 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-06-04
Due date:
% Done:

100%

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

Description

Build issue from gcc 6:

vacation.c: In function 'sendmessage':
vacation.c:766:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
   if (f == NULL)
   ^~
vacation.c:768:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    exit(EX_OSFILE);
    ^~~~
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 a4771893ade3c706ccf9e2b441c8fb5d405be3a1

commit  a4771893ade3c706ccf9e2b441c8fb5d405be3a1
Author: Toomas Soome <tsoome@me.com>
Date:   2017-06-11T16:37:49.000Z

    8315 sendmail: misleading-indentation
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Approved by: Gordon Ross <gwr@nexenta.com>

Actions

Also available in: Atom PDF