diff options
author | yang-g <yangg@google.com> | 2015-10-07 11:40:13 -0700 |
---|---|---|
committer | yang-g <yangg@google.com> | 2015-10-07 11:40:13 -0700 |
commit | b063c87596f4e05e4aaac9f69541e01278920451 (patch) | |
tree | f0ac8083daec33e61943e38e328b1b766007fe15 /src/cpp/server | |
parent | fbfd3d42d2f4fcbc627b713f5ba7f0540bc0a8d0 (diff) |
mark unreachable code with a macro
Diffstat (limited to 'src/cpp/server')
-rw-r--r-- | src/cpp/server/server.cc | 3 |
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); } |