build: avoid build failures on gcc <= 10, or clang
commit259350229028c956fdd5d91c1a6092d4d90cf8a8
authorPádraig Brady <P@draigBrady.com>
Thu, 21 Sep 2023 17:48:49 +0000 (21 18:48 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 21 Sep 2023 18:04:14 +0000 (21 19:04 +0100)
treee7b97349bb785ea861cb48b08efeeb26abd4d4ef
parentd24a117707323c9ccc6ff4ad1e50ecb78aad937e
build: avoid build failures on gcc <= 10, or clang

On gcc 10 the following build failure occurs:
  "error: a label can only be part of a statement
   and a declaration is not a statement"
This is because the current code is non standards conforming,
but GCC >= 11 will compile it (even with the -Wpedantic option).
This issue is tracked for GCC at:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111526

* src/tail.c (parse_options): Avoid a declaration after label,
by using a surrounding block.
src/tail.c