diff options
author | 2015-10-07 11:40:13 -0700 | |
---|---|---|
committer | 2015-10-07 11:40:13 -0700 | |
commit | b063c87596f4e05e4aaac9f69541e01278920451 (patch) | |
tree | f0ac8083daec33e61943e38e328b1b766007fe15 /src/core/surface/channel_connectivity.c | |
parent | fbfd3d42d2f4fcbc627b713f5ba7f0540bc0a8d0 (diff) |
mark unreachable code with a macro
Diffstat (limited to 'src/core/surface/channel_connectivity.c')
-rw-r--r-- | src/core/surface/channel_connectivity.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/surface/channel_connectivity.c b/src/core/surface/channel_connectivity.c index f72fb04142..ca3c02c536 100644 --- a/src/core/surface/channel_connectivity.c +++ b/src/core/surface/channel_connectivity.c @@ -100,9 +100,7 @@ static void finished_completion(grpc_exec_ctx *exec_ctx, void *pw, switch (w->phase) { case WAITING: case CALLED_BACK: - gpr_log(GPR_ERROR, "should never reach here"); - abort(); - break; + GPR_UNREACHABLE_CODE(return ); case CALLING_BACK: w->phase = CALLED_BACK; break; @@ -149,9 +147,7 @@ static void partly_done(grpc_exec_ctx *exec_ctx, state_watcher *w, w->phase = CALLING_BACK_AND_FINISHED; break; case CALLING_BACK_AND_FINISHED: - gpr_log(GPR_ERROR, "should never reach here"); - abort(); - break; + GPR_UNREACHABLE_CODE(return ); case CALLED_BACK: delete = 1; break; |