]> git.gir.st - minesVIiper.git/commit
fix -Werror=misleading-indentation
authorgirst <girst@users.noreply.github.com>
Fri, 27 Oct 2023 15:51:22 +0000 (17:51 +0200)
committergirst <girst@users.noreply.github.com>
Fri, 27 Oct 2023 15:51:22 +0000 (17:51 +0200)
commitc3d65f960b785245cea5123aec5693fd8d972a76
treeb383908865b6bc1fbf55e1a7d31c17d3ffa2b17c
parent21e7b74860f714e3d147b319794ac0dcc242ac14
fix -Werror=misleading-indentation

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
Imprint / Impressum