From b063c87596f4e05e4aaac9f69541e01278920451 Mon Sep 17 00:00:00 2001 From: yang-g Date: Wed, 7 Oct 2015 11:40:13 -0700 Subject: mark unreachable code with a macro --- src/core/iomgr/tcp_client_posix.c | 2 +- src/core/iomgr/tcp_server_posix.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/iomgr') diff --git a/src/core/iomgr/tcp_client_posix.c b/src/core/iomgr/tcp_client_posix.c index aca2691c41..fe20039264 100644 --- a/src/core/iomgr/tcp_client_posix.c +++ b/src/core/iomgr/tcp_client_posix.c @@ -191,7 +191,7 @@ static void on_writable(grpc_exec_ctx *exec_ctx, void *acp, int success) { goto finish; } - abort(); + GPR_UNREACHABLE_CODE(return ); finish: if (fd != NULL) { diff --git a/src/core/iomgr/tcp_server_posix.c b/src/core/iomgr/tcp_server_posix.c index 13bd67576f..99c76dcbe9 100644 --- a/src/core/iomgr/tcp_server_posix.c +++ b/src/core/iomgr/tcp_server_posix.c @@ -352,7 +352,7 @@ static void on_read(grpc_exec_ctx *exec_ctx, void *arg, int success) { gpr_free(addr_str); } - abort(); + GPR_UNREACHABLE_CODE(return ); error: gpr_mu_lock(&sp->server->mu); -- cgit v1.2.3