Skip to content
Snippets Groups Projects
Commit c280b568 authored by Jan Tattermusch's avatar Jan Tattermusch Committed by GitHub
Browse files

Merge pull request #8765 from jtattermusch/fix_unreacheable_code_usage

Fix usage of GPR_UNREACHABLE_CODE
parents 7647b2eb b0fb2d2b
No related branches found
No related tags found
No related merge requests found
...@@ -293,7 +293,7 @@ static void pf_connectivity_changed(grpc_exec_ctx *exec_ctx, void *arg, ...@@ -293,7 +293,7 @@ static void pf_connectivity_changed(grpc_exec_ctx *exec_ctx, void *arg,
loop: loop:
switch (p->checking_connectivity) { switch (p->checking_connectivity) {
case GRPC_CHANNEL_INIT: case GRPC_CHANNEL_INIT:
GPR_UNREACHABLE_CODE(); GPR_UNREACHABLE_CODE(return );
case GRPC_CHANNEL_READY: case GRPC_CHANNEL_READY:
grpc_connectivity_state_set(exec_ctx, &p->state_tracker, grpc_connectivity_state_set(exec_ctx, &p->state_tracker,
GRPC_CHANNEL_READY, GRPC_ERROR_NONE, GRPC_CHANNEL_READY, GRPC_ERROR_NONE,
......
...@@ -553,7 +553,7 @@ static void rr_connectivity_changed(grpc_exec_ctx *exec_ctx, void *arg, ...@@ -553,7 +553,7 @@ static void rr_connectivity_changed(grpc_exec_ctx *exec_ctx, void *arg,
} }
switch (sd->curr_connectivity_state) { switch (sd->curr_connectivity_state) {
case GRPC_CHANNEL_INIT: case GRPC_CHANNEL_INIT:
GPR_UNREACHABLE_CODE(); GPR_UNREACHABLE_CODE(return );
case GRPC_CHANNEL_READY: case GRPC_CHANNEL_READY:
/* add the newly connected subchannel to the list of connected ones. /* add the newly connected subchannel to the list of connected ones.
* Note that it goes to the "end of the line". */ * Note that it goes to the "end of the line". */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment