From 7122cc7392a33355476332bd6745040feed77ef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez?= Date: Tue, 12 May 2026 14:46:23 +0200 Subject: [PATCH] Fix unused variable on GCC 16 (#6392) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González Moreno (cherry picked from commit 754655e466977ba5a882d4a11586a7c08084446e) --- include/fastdds/rtps/common/CacheChange.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/fastdds/rtps/common/CacheChange.h b/include/fastdds/rtps/common/CacheChange.h index 1059006ae2a..4b3d9d0221f 100644 --- a/include/fastdds/rtps/common/CacheChange.h +++ b/include/fastdds/rtps/common/CacheChange.h @@ -269,8 +269,7 @@ struct RTPS_DllAPI CacheChange_t { // Keep index of next fragment on the payload portion at the beginning of each fragment. Last // fragment will have fragment_count_ as 'next fragment index' - size_t offset = 0; - for (uint32_t i = 1; i <= fragment_count_; i++, offset += fragment_size_) + for (uint32_t i = 1; i <= fragment_count_; i++) { set_next_missing_fragment(i - 1, i); // index to next fragment in missing list }