Index: base/logging.cc |
diff --git a/base/logging.cc b/base/logging.cc |
index 70e928a0d9370f08a175ff3c8a4c092abf0f84ac..11ed652eaa6cb32ab4c34e4e64fea6b48989cbcb 100644 |
--- a/base/logging.cc |
+++ b/base/logging.cc |
@@ -87,8 +87,9 @@ namespace { |
VlogInfo* g_vlog_info = nullptr; |
VlogInfo* g_vlog_info_prev = nullptr; |
-const char* const log_severity_names[LOG_NUM_SEVERITIES] = { |
- "INFO", "WARNING", "ERROR", "FATAL" }; |
+const char* const log_severity_names[] = {"INFO", "WARNING", "ERROR", "FATAL"}; |
+static_assert(LOG_NUM_SEVERITIES == arraysize(log_severity_names), |
+ "Incorrect number of log_severity_names"); |
const char* log_severity_name(int severity) { |
if (severity >= 0 && severity < LOG_NUM_SEVERITIES) |