Skip to content

Commit 4a6321a

Browse files
committed
compiler warning
1 parent 71dee0e commit 4a6321a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/gdal_read_stream.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Rcpp::List CPL_read_gdal_stream(
7979
bool dsn_isdb,
8080
Rcpp::CharacterVector fid_column,
8181
int width) {
82-
82+
8383
const char* array_stream_options[] = {"INCLUDE_FID=NO", nullptr};
8484
if (fid_column.size() == 1) {
8585
array_stream_options[0] = "INCLUDE_FID=YES";
@@ -89,7 +89,6 @@ Rcpp::List CPL_read_gdal_stream(
8989
quiet, drivers,
9090
wkt_filter,
9191
dsn_exists, dsn_isdb, width);
92-
OGRDataSource* poDS = (OGRDataSource*)(R_ExternalPtrAddr(prep[0]));
9392
OGRLayer* poLayer = (OGRLayer*)R_ExternalPtrAddr(prep[1]);
9493
auto stream_out = reinterpret_cast<struct ArrowArrayStream*>(
9594
R_ExternalPtrAddr(stream_xptr));

0 commit comments

Comments
 (0)