Project

General

Profile

Actions

Bug #8326

closed

logger: misleading-indentation

Added by Toomas Soome almost 7 years ago. Updated almost 7 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:
External Bug:

Description

Build error from gcc 6:

logger.c: In function 'main':
logger.c:145:2: error: this 'while' clause does not guard... [-Werror=misleading-indentation]
  while ((opt = getopt(argc, argv, "it:p:f:")) != EOF)
  ^~~~~
logger.c:177:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
   argc -= optind;
   ^~~~
cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF