From 671b1082e33659926d4fff42767cdffb48ec103c Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Thu, 28 Dec 2023 12:08:40 +0100 Subject: [PATCH] Fix unused variable warning --- coregrind/m_debuginfo/readelf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coregrind/m_debuginfo/readelf.c b/coregrind/m_debuginfo/readelf.c index 3b986bb48b..b1f863fe59 100644 --- a/coregrind/m_debuginfo/readelf.c +++ b/coregrind/m_debuginfo/readelf.c @@ -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); } /* ---------------------------------------------------------- -- 2.47.2