Project

General

Profile

Actions

Bug #8295

closed

tsol: misleading-indentation

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

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

100%

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

Description

Build error from gcc 6:

tnctl.c: In function 'process_rhl':
tnctl.c:201:4: error: this 'else' clause does not guard... [-Werror=misleading-indentation]
    else
    ^~~~
tnctl.c:204:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
     (void) fprintf(stderr,
     ^
cc1: all warnings being treated as errors
Actions #1

Updated by Electric Monk over 6 years ago

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

git commit 0890d2f3364ef2bc17e6f3c41933166ac751b172

commit  0890d2f3364ef2bc17e6f3c41933166ac751b172
Author: Toomas Soome <tsoome@me.com>
Date:   2017-06-02T17:49:49.000Z

    8295 tsol: misleading-indentation
    Reviewed by: Sebastian Wiedenroth <wiedi@frubar.net>
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Actions

Also available in: Atom PDF