From a96af06fa25e111f382caa538645e119029ab30d Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Thu, 7 Sep 2023 16:05:33 +0200
Subject: [PATCH] unictype/category-none: Fix clang -Wpedantic warning.

* lib/unictype/categ_none.c (_UC_CATEGORY_NONE): Use ISO C designated
initializer syntax to initialize the intended field of the union.
---
 ChangeLog                 | 4 ++++
 lib/unictype/categ_none.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 35dac33cc9..b5f09d46cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2023-09-07  Bruno Haible  <bruno@clisp.org>
 
+	unictype/category-none: Fix clang -Wpedantic warning.
+	* lib/unictype/categ_none.c (_UC_CATEGORY_NONE): Use ISO C designated
+	initializer syntax to initialize the intended field of the union.
+
 	c-*snprintf: Fix some clang -Wmissing-prototypes warnings.
 	* lib/c-snprintf.c: Include c-snprintf.h instead of <stdio.h>.
 	* lib/c-vsnprintf.c: Include c-vsnprintf.h instead of <stdio.h>.
diff --git a/lib/unictype/categ_none.c b/lib/unictype/categ_none.c
index 89f4949333..43ae957aa2 100644
--- a/lib/unictype/categ_none.c
+++ b/lib/unictype/categ_none.c
@@ -27,4 +27,4 @@ always_false (ucs4_t uc, uint32_t bitmask)
 }
 
 const uc_general_category_t _UC_CATEGORY_NONE =
-  { 0, 1, { &always_false } };
+  { 0, 1, { .lookup_fn = &always_false } };
-- 
2.39.5