From d3e932adfe454c1de38adf153a4509c2cae81152 Mon Sep 17 00:00:00 2001 From: Corey Kosak Date: Thu, 18 Apr 2024 10:43:35 -0400 Subject: [PATCH] R client: fix warning caused by not checking return value of function (#5382) --- R/rdeephaven/src/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/rdeephaven/src/client.cpp b/R/rdeephaven/src/client.cpp index 2fbba8114a9..f819d644a91 100644 --- a/R/rdeephaven/src/client.cpp +++ b/R/rdeephaven/src/client.cpp @@ -545,7 +545,7 @@ class TableHandleWrapper { std::shared_ptr record_batch_reader = arrow::RecordBatchReader::Make(empty_record_batches).ValueOrDie(); ArrowArrayStream* stream_ptr = new ArrowArrayStream(); - arrow::ExportRecordBatchReader(record_batch_reader, stream_ptr); + deephaven::client::utility::OkOrThrow(DEEPHAVEN_LOCATION_EXPR(arrow::ExportRecordBatchReader(record_batch_reader, stream_ptr))); // XPtr is needed here to ensure Rcpp can properly handle type casting, as it does not like raw pointers return Rcpp::XPtr(stream_ptr, true);