From c5abb5b806ddc3eedde2e6bcd31eef78c36edf33 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Tue, 3 Jan 2023 10:37:44 +0100 Subject: Fix compilation error in utf8code.c due to predeclaring a static array with unspecified size. --- src/utf8code.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/utf8code.c') diff --git a/src/utf8code.c b/src/utf8code.c index 4b657cc4..c4866b78 100644 --- a/src/utf8code.c +++ b/src/utf8code.c @@ -118,13 +118,11 @@ typedef struct { } URange16; typedef struct { - const char *name; const URange16 *r16; int nr16; } UGroup; -static const UGroup unicode_groups[]; -static const int num_unicode_groups; +static const UGroup unicode_groups[U8G_SIZE]; bool utf8_isgroup(int group, uint32_t c) { for (int j=0; j