You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by em...@apache.org on 2019/06/27 08:15:21 UTC
[arrow] branch master updated: ARROW-5754: [C++] Add override mark
for ~GrpcStreamWriter
This is an automated email from the ASF dual-hosted git repository.
emkornfield pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 2264791 ARROW-5754: [C++] Add override mark for ~GrpcStreamWriter
2264791 is described below
commit 2264791499e7f1dbf58b64f39cf6221e434788b2
Author: Kenta Murata <mr...@mrkn.jp>
AuthorDate: Thu Jun 27 01:11:17 2019 -0700
ARROW-5754: [C++] Add override mark for ~GrpcStreamWriter
I encountered the following compile error:
```
../src/arrow/flight/client.cc:244:3: error: '~GrpcStreamWriter' overrides a destructor but is not marked 'override' [-Werror,-Winconsistent-missing-destructor-override]
~GrpcStreamWriter() = default;
^
../src/arrow/flight/client.h:86:27: note: overridden virtual function is here
class ARROW_FLIGHT_EXPORT FlightStreamWriter : public ipc::RecordBatchWriter {
^
```
This change can be fix this error.
Author: Kenta Murata <mr...@mrkn.jp>
Closes #4716 from mrkn/fix_flight_client_override and squashes the following commits:
a4659badb <Kenta Murata> Add override mark for ~GrpcStreamWriter
---
cpp/src/arrow/flight/client.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpp/src/arrow/flight/client.cc b/cpp/src/arrow/flight/client.cc
index f81b627..0e0d82c 100644
--- a/cpp/src/arrow/flight/client.cc
+++ b/cpp/src/arrow/flight/client.cc
@@ -241,7 +241,7 @@ void GrpcStreamReader::Cancel() { rpc_->context.TryCancel(); }
class DoPutPayloadWriter;
class GrpcStreamWriter : public FlightStreamWriter {
public:
- ~GrpcStreamWriter() = default;
+ ~GrpcStreamWriter() override = default;
GrpcStreamWriter() : app_metadata_(nullptr), batch_writer_(nullptr) {}