From: Paul Floyd Date: Thu, 28 Dec 2023 11:08:40 +0000 (+0100) Subject: Fix unused variable warning X-Git-Tag: VALGRIND_3_23_0~207 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=671b1082e33659926d4fff42767cdffb48ec103c;p=thirdparty%2Fvalgrind.git Fix unused variable warning --- 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); } /* ----------------------------------------------------------