diff options
author | Sree Kuchibhotla <sreek@google.com> | 2015-12-07 11:04:40 -0800 |
---|---|---|
committer | Sree Kuchibhotla <sreek@google.com> | 2015-12-07 11:04:40 -0800 |
commit | 039655475d5be266062f54aea8ca7f1cfc48af2a (patch) | |
tree | e46400b160b7325bedde69eb93024196b5c2c39c /src | |
parent | 42564d1666a751a328d8f0781e7d215df4de2d05 (diff) |
Marking unreachable code so that it doesn't get counted in code coverage
Diffstat (limited to 'src')
-rw-r--r-- | src/core/support/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/support/log.c b/src/core/support/log.c index f52c2035b9..04156a5b1f 100644 --- a/src/core/support/log.c +++ b/src/core/support/log.c @@ -32,6 +32,7 @@ */ #include <grpc/support/log.h> +#include <grpc/support/port_platform.h> #include <stdio.h> #include <string.h> @@ -48,7 +49,7 @@ const char *gpr_log_severity_string(gpr_log_severity severity) { case GPR_LOG_SEVERITY_ERROR: return "E"; } - return "UNKNOWN"; + GPR_UNREACHABLE_CODE(return "UNKNOWN"); } void gpr_log_message(const char *file, int line, gpr_log_severity severity, |