From 6eea2133f88c456b4b23f3909ba6ac6ff9079612 Mon Sep 17 00:00:00 2001 From: JP Swinski Date: Wed, 8 Nov 2023 11:34:13 +0000 Subject: [PATCH] fixed variable scope warning --- plugins/icesat2/plugin/Atl06Reader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/icesat2/plugin/Atl06Reader.cpp b/plugins/icesat2/plugin/Atl06Reader.cpp index 3f67d0527..4e73a64af 100644 --- a/plugins/icesat2/plugin/Atl06Reader.cpp +++ b/plugins/icesat2/plugin/Atl06Reader.cpp @@ -532,7 +532,6 @@ void* Atl06Reader::subsettingThread (void* parm) Atl06Reader* reader = info->reader; Icesat2Parms* parms = reader->parms; stats_t local_stats = {0, 0, 0, 0, 0}; - uint32_t extent_counter = 0; RecordObject** ancillary = NULL; long* ancillary_index = NULL; @@ -576,6 +575,9 @@ void* Atl06Reader::subsettingThread (void* parm) /* Increment Read Statistics */ local_stats.segments_read = region.latitude.size; + /* Initialize Extent Counter */ + uint32_t extent_counter = 0; + /* Loop Through Each Segment */ for(long segment = 0; reader->active && segment < region.num_segments; segment++) {