Project

General

Profile

Actions

Bug #8222

closed

libdscfg: misleading-indentation

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2017-05-13
Due date:
% Done:

100%

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

Description

Building with gcc 6:

../common/cfg.c: In function 'cfg_get_cstring':
../common/cfg.c:507:6: error: this 'else' clause does not guard... [-Werror=misleading-indentation]
      else
      ^~~~
../common/cfg.c:518:7: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
       strncpy(value, p, value_len);
       ^~~~~~~
cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF