]> Git Repo - qemu.git/commitdiff
tests/fuzz: fix warning
authorMarc-André Lureau <[email protected]>
Wed, 20 Apr 2022 13:26:24 +0000 (17:26 +0400)
committerMarc-André Lureau <[email protected]>
Thu, 21 Apr 2022 13:09:09 +0000 (17:09 +0400)
../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 <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Message-Id: <20220420132624.2439741[email protected]>

tests/qtest/fuzz/generic_fuzz.c

index dd7e25851cb6dcc55b97f95897c1a65d312b4a10..bce83604825e2543c59c885ccfb9f1bb7e567961 100644 (file)
@@ -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.
This page took 0.033493 seconds and 4 git commands to generate.