From 0e2f9dc688b77a6affb869854ce2726e2eba3954 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 8 Nov 2021 18:44:09 -0800 Subject: [PATCH] all_font_metrics_len: squash -Wold-style-declaration warning --- lib/common/textspan_lut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/textspan_lut.c b/lib/common/textspan_lut.c index dea7690d8..9ad9cf6dd 100644 --- a/lib/common/textspan_lut.c +++ b/lib/common/textspan_lut.c @@ -690,7 +690,7 @@ static const struct FontFamilyMetrics all_font_metrics[] = { }, }; -const static size_t all_font_metrics_len = +static const size_t all_font_metrics_len = sizeof(all_font_metrics) / sizeof(all_font_metrics[0]); /// Compares two font names for equality, ignoring case and special characters. -- 2.40.0