aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/server
diff options
context:
space:
mode:
authorGravatar yang-g <yangg@google.com>2015-10-07 11:40:13 -0700
committerGravatar yang-g <yangg@google.com>2015-10-07 11:40:13 -0700
commitb063c87596f4e05e4aaac9f69541e01278920451 (patch)
treef0ac8083daec33e61943e38e328b1b766007fe15 /src/cpp/server
parentfbfd3d42d2f4fcbc627b713f5ba7f0540bc0a8d0 (diff)
mark unreachable code with a macro
Diffstat (limited to 'src/cpp/server')
-rw-r--r--src/cpp/server/server.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpp/server/server.cc b/src/cpp/server/server.cc
index a44e1d2025..e09744b842 100644
--- a/src/cpp/server/server.cc
+++ b/src/cpp/server/server.cc
@@ -153,8 +153,7 @@ class Server::SyncRequest GRPC_FINAL : public CompletionQueueTag {
GPR_ASSERT((*req)->in_flight_);
return true;
}
- gpr_log(GPR_ERROR, "Should never reach here");
- abort();
+ GPR_UNREACHABLE_CODE(return false);
}
void SetupRequest() { cq_ = grpc_completion_queue_create(nullptr); }