Skip to content

Commit da36d8a

Browse files
authored
Fix shadowing error in mmap_data_loader.cpp (#11858)
### Summary Fix a -Wshadow error causing internal build failures. I will add this to the GitHub CI, as well. ### Test plan CI
1 parent 925ef20 commit da36d8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extension/data_loader/mmap_data_loader.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ Result<FreeableBuffer> MmapDataLoader::load(
181181
size_t size,
182182
ET_UNUSED const DataLoader::SegmentInfo& segment_info) const {
183183
// Ensure read range is valid.
184-
auto err = validate_input(offset, size);
185-
if (err != Error::Ok) {
186-
return err;
184+
auto validation_err = validate_input(offset, size);
185+
if (validation_err != Error::Ok) {
186+
return validation_err;
187187
}
188188

189189
// mmap() will fail if the size is zero.

0 commit comments

Comments
 (0)