From 00dffbe317ac31b20ca21cd3c3655ac9fb733198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Wed, 19 Jun 2019 21:11:05 +0200 Subject: [PATCH] wmiv.c Removed indentation warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch removes the indentation problem. The patch includes a long comment about the change. wmiv.c: In function ‘main’: wmiv.c:843:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (e.xclient.data.l[0] == delWindow) ^~ wmiv.c:845:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ break; ^~~~~ Signed-off-by: Rodolfo García Peñas (kix) --- util/wmiv.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/util/wmiv.c b/util/wmiv.c index 64e6eb5b..57ad4d4e 100755 --- a/util/wmiv.c +++ b/util/wmiv.c @@ -842,7 +842,14 @@ int main(int argc, char **argv) if (e.type == ClientMessage) { if (e.xclient.data.l[0] == delWindow) quit = 1; - break; + + /* + * This break could be related to all ClientMessages or + * related to delWindow. Before the patch about this comment + * the break was indented with one tab more (at the same level + * than "quit = 1;" in the previous line. + */ + break; } if (e.type == FocusIn) { focus = True;