diff --git a/src/gdal_dataset.cpp b/src/gdal_dataset.cpp index f79661cb1..bbc168bc6 100644 --- a/src/gdal_dataset.cpp +++ b/src/gdal_dataset.cpp @@ -101,7 +101,7 @@ NAN_METHOD(Dataset::New) { Local layers = DatasetLayers::New(info.This()); Nan::SetPrivate(info.This(), Nan::New("layers_").ToLocalChecked(), layers); - Local rootObj, bandsObj; + Local bandsObj; #if GDAL_VERSION_MAJOR > 3 || (GDAL_VERSION_MAJOR == 3 && GDAL_VERSION_MINOR >= 1) GDALDataset *gdal_ds = f->get(); std::shared_ptr root = gdal_ds->GetRootGroup(); diff --git a/src/gdal_mdarray.cpp b/src/gdal_mdarray.cpp index 2a9ea60e5..3e26792f2 100644 --- a/src/gdal_mdarray.cpp +++ b/src/gdal_mdarray.cpp @@ -108,7 +108,7 @@ Local MDArray::New(std::shared_ptr raw, GDALDataset *parent_ // add reference to datasource so datasource doesnt get GC'ed while group is // alive - Local ds, group; + Local ds; if (object_store.has(parent_ds)) { ds = object_store.get(parent_ds); } else {