Actions
Bug #8188
closedtic: misleading-indentation
Start date:
2017-05-10
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:
Description
Build error with gcc 6:
/code/illumos-gate/usr/src/cmd/tic/tic_main.c: In function 'check_dir': /code/illumos-gate/usr/src/cmd/tic/tic_main.c:221:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation] if (mkdir(dir, 0755) < 0) ^~ /code/illumos-gate/usr/src/cmd/tic/tic_main.c:223:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' dirnames[dirletter] = 1; ^~~~~~~~ cc1: all warnings being treated as errors
Updated by Electric Monk over 6 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
git commit f86c22fea46252f35f4f262c9e5100ce1ccc9031
commit f86c22fea46252f35f4f262c9e5100ce1ccc9031 Author: Toomas Soome <tsoome@me.com> Date: 2017-05-11T16:16:22.000Z 8188 tic: misleading-indentation Reviewed by: Jason King <jason.brian.king@gmail.com> Reviewed by: Yuri Pankov <yuri.pankov@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Actions