From c3d65f960b785245cea5123aec5693fd8d972a76 Mon Sep 17 00:00:00 2001 From: girst Date: Fri, 27 Oct 2023 17:51:22 +0200 Subject: [PATCH] fix -Werror=misleading-indentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit mines.c:551:9: error: this ‘for’ clause does not guard... [-Werror=misleading-indentation] 551 | for (int c = g.p[1]+plusminus; c >= 0 && c < f.w; c+=plusminus) \ | ^~~ mines.c:564:29: note: in expansion of macro ‘FIND_NEXT’ 564 | FIND_NEXT(CELL.o && CELL.n == what-'0', direction); | ^~~~~~~~~ mines.c:556:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 556 | return 0; \ | ^~~~~~ mines.c:564:29: note: in expansion of macro ‘FIND_NEXT’ 564 | FIND_NEXT(CELL.o && CELL.n == what-'0', direction); | ^~~~~~~~~ --- mines.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mines.c b/mines.c index 02cb624..68c01ec 100644 --- a/mines.c +++ b/mines.c @@ -549,8 +549,8 @@ void to_next_boundary (int l, int c, char direction) { move_hi (g.p[0], c+(till_after*plusminus)); \ return 1; /* NOTE: break didn't work */ \ } \ - return 0; \ - } while(0) + return 0; \ +} while(0) int find (int what, char direction, int till_after) { switch (what) { case ' ': what = '0'; /* fallthrough */ -- 2.39.3