aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/client_config/uri_parser.c
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/core/client_config/uri_parser.c
parentfbfd3d42d2f4fcbc627b713f5ba7f0540bc0a8d0 (diff)
mark unreachable code with a macro
Diffstat (limited to 'src/core/client_config/uri_parser.c')
-rw-r--r--src/core/client_config/uri_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/client_config/uri_parser.c b/src/core/client_config/uri_parser.c
index df9f32d403..cbdfffcf8e 100644
--- a/src/core/client_config/uri_parser.c
+++ b/src/core/client_config/uri_parser.c
@@ -37,6 +37,7 @@
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
+#include <grpc/support/port_platform.h>
#include <grpc/support/string_util.h>
/** a size_t default value... maps to all 1's */
@@ -120,8 +121,7 @@ static int parse_fragment_or_query(const char *uri_text, size_t *i) {
} else {
return 1;
}
- gpr_log(GPR_ERROR, "should never reach here");
- abort();
+ GPR_UNREACHABLE_CODE(return 0);
default:
(*i) += advance;
break;