From 36ec13a54c03ca5b30b3f783a2b43a2c1071c2cc Mon Sep 17 00:00:00 2001 From: hypnoce Date: Tue, 28 Apr 2026 00:56:33 +0200 Subject: [PATCH] Fix static assert in prometheus_stats.cc. Some compiler that passes through the static assert during template parsing Signed-off-by: hypnoce --- source/server/admin/prometheus_stats.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/server/admin/prometheus_stats.cc b/source/server/admin/prometheus_stats.cc index bcc87ab44e2bf..0eedb2f8a11de 100644 --- a/source/server/admin/prometheus_stats.cc +++ b/source/server/admin/prometheus_stats.cc @@ -146,7 +146,7 @@ class TextFormat : public PrometheusStatsFormatter::OutputFormat { std::is_same_v) { type = "gauge"; } else { - static_assert(false, "Unexpected StatsType"); + static_assert(sizeof(StatType) == 0, "Unexpected StatsType"); } generateTypeOutput(output, type, prefixed_tag_extracted_name);