Project

General

Profile

Bug #8186

rdist: 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-09
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

Building with gcc 6:

docmd.c: In function 'docmds':
docmd.c:124:1: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
 if (debug)
 ^~
docmd.c:131:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  for (c = cmds; c != NULL; c = c->c_next) {
  ^~~
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 859dddab5a1a5373df6d162d36ae46a9f8560cd0

commit  859dddab5a1a5373df6d162d36ae46a9f8560cd0
Author: Toomas Soome <tsoome@me.com>
Date:   2017-05-17T11:32:05.000Z

    8186 rdist: misleading-indentation
    Reviewed by: Igor Kozhukhov <igor@dilos.org>
    Reviewed by: Aurélien Larcher <aurelien.larcher@gmail.com>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>

Also available in: Atom PDF