tests/coroutine: Clean up global variable shadowing
commit89c90405648d34470b7f19120e6bf9cc054ad8b2
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 9 Oct 2023 10:02:51 +0000 (9 12:02 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 27 Oct 2023 07:39:08 +0000 (27 09:39 +0200)
tree11ed2e69981ac09d4dd57b47a8681965b5cc3548
parent0c2c2932a97e73fa400af6ab4e4f6625ead3e4a1
tests/coroutine: Clean up global variable shadowing

Rename the global variable to avoid:

  tests/unit/test-coroutine.c:430:11: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
      bool *done = opaque;
            ^
  tests/unit/test-coroutine.c:438:10: error: declaration shadows a variable in the global scope [-Werror,-Wshadow]
      bool done = false;
           ^
  tests/unit/test-coroutine.c:198:12: note: previous declaration is here
  static int done;
             ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20231009100251.56019-11-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/unit/test-coroutine.c