diff options
author | 2015-03-10 00:43:11 +0800 | |
---|---|---|
committer | 2015-03-10 00:46:10 +0800 | |
commit | 4be94b9541c19d315b91a13e363fea805af4e053 (patch) | |
tree | 0b72bd19c53041c1b1b44033c3eaf6c122fb8d44 /include | |
parent | 75c60c1a43a2b2a7b21967d7ea6d2dda5a351348 (diff) |
Add missing GRPC_OVERRIDE, NFC
Testing asan configuration with the latest clang compiler fails due to
the warning `-Winconsistent-missing-override`. This patch fixes it.
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc++/async_unary_call.h | 2 | ||||
-rw-r--r-- | include/grpc++/server.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/grpc++/async_unary_call.h b/include/grpc++/async_unary_call.h index f86a1ea518..658941bb6d 100644 --- a/include/grpc++/async_unary_call.h +++ b/include/grpc++/async_unary_call.h @@ -92,7 +92,7 @@ class ServerAsyncResponseWriter GRPC_FINAL explicit ServerAsyncResponseWriter(ServerContext* ctx) : call_(nullptr, nullptr, nullptr), ctx_(ctx) {} - void SendInitialMetadata(void* tag) { + void SendInitialMetadata(void* tag) GRPC_OVERRIDE { GPR_ASSERT(!ctx_->sent_initial_metadata_); meta_buf_.Reset(tag); diff --git a/include/grpc++/server.h b/include/grpc++/server.h index cc9cbe2e8d..43c8432caf 100644 --- a/include/grpc++/server.h +++ b/include/grpc++/server.h @@ -96,7 +96,7 @@ class Server GRPC_FINAL : private CallHook, void RequestAsyncCall(void* registered_method, ServerContext* context, grpc::protobuf::Message* request, ServerAsyncStreamingInterface* stream, - CompletionQueue* cq, void* tag); + CompletionQueue* cq, void* tag) GRPC_OVERRIDE; // Completion queue. CompletionQueue cq_; |