On 09/10/2023 12.02, Philippe Mathieu-Daudé wrote:
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é <phi...@linaro.org>
---
  tests/unit/test-coroutine.c | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)

Reviewed-by: Thomas Huth <th...@redhat.com>



Reply via email to