diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-05-05 12:49:40 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-05-05 12:50:36 -0700 |
commit | ce80499aa7cadb253a815673bf6934df8132990a (patch) | |
tree | 2fa91dd3ad91bd2f773b49438981230fc50b0ea5 | |
parent | 0b852ef27abda922ae18b8042acd18104b25d596 (diff) |
Standardize indentation in validate_visual()
Fixes gcc 7.3 warnings:
x2jet.c: In function ‘validate_visual’:
x2jet.c:1057:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (depth > 8) invalid_depth_for_visual(depth, "GrayScale"); break;
^~
x2jet.c:1057:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if (depth > 8) invalid_depth_for_visual(depth, "GrayScale"); break;
^~~~~
x2jet.c:1059:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (depth > 8) invalid_depth_for_visual(depth, "StaticGray"); break;
^~
x2jet.c:1059:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if (depth > 8) invalid_depth_for_visual(depth, "StaticGray"); break;
^~~~~
x2jet.c:1061:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (depth > 8) invalid_depth_for_visual(depth, "PseudoColor"); break;
^~
x2jet.c:1061:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if (depth > 8) invalid_depth_for_visual(depth, "PseudoColor"); break;
^~~~~
x2jet.c:1063:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (depth > 8) invalid_depth_for_visual(depth, "StaticColor"); break;
^~
x2jet.c:1063:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if (depth > 8) invalid_depth_for_visual(depth, "StaticColor"); break;
^~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | x2jet.c | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -1054,13 +1054,21 @@ void validate_visual(void) switch (xwd_header.visual_class) { case GrayScale: - if (depth > 8) invalid_depth_for_visual(depth, "GrayScale"); break; + if (depth > 8) + invalid_depth_for_visual(depth, "GrayScale"); + break; case StaticGray: - if (depth > 8) invalid_depth_for_visual(depth, "StaticGray"); break; + if (depth > 8) + invalid_depth_for_visual(depth, "StaticGray"); + break; case PseudoColor: - if (depth > 8) invalid_depth_for_visual(depth, "PseudoColor"); break; + if (depth > 8) + invalid_depth_for_visual(depth, "PseudoColor"); + break; case StaticColor: - if (depth > 8) invalid_depth_for_visual(depth, "StaticColor"); break; + if (depth > 8) + invalid_depth_for_visual(depth, "StaticColor"); + break; case DirectColor: if (depth != 12 && depth != 24) invalid_depth_for_visual(depth, "DirectColor"); |