Skip to content

Commit a00f6d6

Browse files
zetafunctioncopybara-github
authored andcommitted
Move default case to statement outside switch block in log_severity.h.
Some compilers warn if a switch block that already covers all enumeration values also has a default label. PiperOrigin-RevId: 597583941 Change-Id: Ib3eb08dca0a19105522c61e47944cfc75280c15e
1 parent 8bd6445 commit a00f6d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

absl/base/log_severity.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ constexpr const char* LogSeverityName(absl::LogSeverity s) {
104104
case absl::LogSeverity::kWarning: return "WARNING";
105105
case absl::LogSeverity::kError: return "ERROR";
106106
case absl::LogSeverity::kFatal: return "FATAL";
107-
default: return "UNKNOWN";
108107
}
108+
return "UNKNOWN";
109109
}
110110

111111
// NormalizeLogSeverity()

0 commit comments

Comments
 (0)