From 039655475d5be266062f54aea8ca7f1cfc48af2a Mon Sep 17 00:00:00 2001 From: Sree Kuchibhotla Date: Mon, 7 Dec 2015 11:04:40 -0800 Subject: Marking unreachable code so that it doesn't get counted in code coverage --- src/core/support/log.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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 +#include #include #include @@ -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, -- cgit v1.2.3