diff --git a/include/grpc++/async_unary_call.h b/include/grpc++/async_unary_call.h index f86a1ea5185a66a3723c6b7a3dc2f67a99c26385..658941bb6d47ed78b5e4d8f8508367bb19490aea 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 cc9cbe2e8dda1c3564a3e0dd1c7a85d961bcc58c..43c8432caf5fda06f98c338ee757acc23483f544 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_; diff --git a/test/cpp/qps/client_async.cc b/test/cpp/qps/client_async.cc index 5eb9ff6521f77739f71002e7b1a5df058f18e29d..c6535bebf8856cb02fb5b89270f689f123114109 100644 --- a/test/cpp/qps/client_async.cc +++ b/test/cpp/qps/client_async.cc @@ -94,7 +94,7 @@ class ClientRpcContextUnaryImpl : public ClientRpcContext { hist->Add((Timer::Now() - start_) * 1e9); } - void StartNewClone() { + void StartNewClone() GRPC_OVERRIDE { new ClientRpcContextUnaryImpl(stub_, req_, start_req_, callback_); } @@ -175,7 +175,7 @@ class AsyncClient GRPC_FINAL : public Client { } } - void ThreadFunc(Histogram *histogram, size_t thread_idx) { + void ThreadFunc(Histogram *histogram, size_t thread_idx) GRPC_OVERRIDE { void *got_tag; bool ok; cli_cqs_[thread_idx]->Next(&got_tag, &ok);