Project

General

Profile

Actions

Bug #7876

closed

libast: misleading-indentation errors

Added by Toomas Soome over 5 years ago. Updated about 5 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

../common/misc/magic.c: In function 'cklang':
../common/misc/magic.c:1127:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
       if (s > mp->fbuf)
       ^~
../common/misc/magic.c:1148:8: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if (!mp->idtab)
        ^~
cc1: all warnings being treated as errors

../common/sfio/sfpool.c: In function 'sfpool':
../common/sfio/sfpool.c:291:4: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
  { if(f)
    ^~
../common/sfio/sfpool.c:293:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   if(pf)
   ^~
cc1: all warnings being treated as errors

../common/vmalloc/vmbest.c:983:6: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
    { if(!bestreclaim(vd,np,C_INDEX(s)) )
      ^~
../common/vmalloc/vmbest.c:985:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
     s = SIZE(np); /**/ASSERT(s%ALIGN == 0);
     ^
cc1: all warnings being treated as errors
Actions

Also available in: Atom PDF