7876 libast: misleading-indentation errors

Review Request #364 - Created Feb. 15, 2017 and updated

Information
Toomas Soome
illumos-gate
7876
0237891...
Reviewers
general

7876 libast: misleading-indentation errors

../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


  
Gordon Ross
Marcel Telka
Yuri Pankov
Toomas Soome
Toomas Soome
Review request changed

Change Summary:

drop the previous update; the issue in magic.c is about the half of the body of if having one level too deep, including the terminating }. The remaining 2 files are even more trivial. This is the minimal change for libast to make gcc happy.

Commit:

-bc93f1163578130487de5257e13790d9326de28e
+023789130e1d7289fee1af60041dc88b0ee27719

Diff:

Revision 2 (+21 -19)

Show changes

Loading...