]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix unused variable warning
authorPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 28 Dec 2023 11:08:40 +0000 (12:08 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 28 Dec 2023 11:08:40 +0000 (12:08 +0100)
coregrind/m_debuginfo/readelf.c

index 3b986bb48b3618c5c3475fd8f91681d1d0e62399..b1f863fe5994e061765045ad914f8fa42364df01 100644 (file)
@@ -1989,6 +1989,7 @@ Bool ML_(read_elf_object) ( struct _DebugInfo* di )
          vg_assert(VG_IS_PAGE_ALIGNED(map->avma));
       }
       vg_assert(has_nonempty_rx);
+      vg_assert(di->fsm.rw_map_count == 0 || has_nonempty_rw);
    }
 
    /* ----------------------------------------------------------