qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 41/41] tests/fuzz: fix warning


From: Thomas Huth
Subject: Re: [PATCH 41/41] tests/fuzz: fix warning
Date: Wed, 20 Apr 2022 16:30:55 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0

On 20/04/2022 15.26, marcandre.lureau@redhat.com wrote:
From: Marc-André Lureau <marcandre.lureau@redhat.com>

../tests/qtest/fuzz/generic_fuzz.c:746:17: warning: variable 'name' set but not 
used [-Wunused-but-set-variable]

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
  tests/qtest/fuzz/generic_fuzz.c | 2 --
  1 file changed, 2 deletions(-)

diff --git a/tests/qtest/fuzz/generic_fuzz.c b/tests/qtest/fuzz/generic_fuzz.c
index dd7e25851cb6..bce83604825e 100644
--- a/tests/qtest/fuzz/generic_fuzz.c
+++ b/tests/qtest/fuzz/generic_fuzz.c
@@ -743,14 +743,12 @@ static void usage(void)
static int locate_fuzz_memory_regions(Object *child, void *opaque)
  {
-    const char *name;
      MemoryRegion *mr;
      if (object_dynamic_cast(child, TYPE_MEMORY_REGION)) {
          mr = MEMORY_REGION(child);
          if ((memory_region_is_ram(mr) ||
              memory_region_is_ram_device(mr) ||
              memory_region_is_rom(mr)) == false) {
-            name = object_get_canonical_path_component(child);
              /*
               * We don't want duplicate pointers to the same MemoryRegion, so
               * try to remove copies of the pointer, before adding it.

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]