diff options
author | Daniel Cheng <dcheng@google.com> | 2024-01-11 09:57:26 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-01-11 09:57:58 -0800 |
commit | a00f6d6d0ce50fbae36e639a58b1a8b78d09064c (patch) | |
tree | 2de634a92c3bb718c4cade4c5da9d76d533d5495 | |
parent | 8bd6445acc4bd0d123da2a44448b7218dfc70939 (diff) |
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
-rw-r--r-- | absl/base/log_severity.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/base/log_severity.h b/absl/base/log_severity.h index d0795a2d..de9702ab 100644 --- a/absl/base/log_severity.h +++ b/absl/base/log_severity.h @@ -104,8 +104,8 @@ constexpr const char* LogSeverityName(absl::LogSeverity s) { case absl::LogSeverity::kWarning: return "WARNING"; case absl::LogSeverity::kError: return "ERROR"; case absl::LogSeverity::kFatal: return "FATAL"; - default: return "UNKNOWN"; } + return "UNKNOWN"; } // NormalizeLogSeverity() |