summaryrefslogtreecommitdiff
path: root/absl/base/log_severity.h
diff options
context:
space:
mode:
authorGravatar Daniel Cheng <dcheng@google.com>2024-01-11 09:57:26 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2024-01-11 09:57:58 -0800
commita00f6d6d0ce50fbae36e639a58b1a8b78d09064c (patch)
tree2de634a92c3bb718c4cade4c5da9d76d533d5495 /absl/base/log_severity.h
parent8bd6445acc4bd0d123da2a44448b7218dfc70939 (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
Diffstat (limited to 'absl/base/log_severity.h')
-rw-r--r--absl/base/log_severity.h2
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()