unictype/category-none: Fix clang -Wpedantic warning.
authorBruno Haible <bruno@clisp.org>
Thu, 7 Sep 2023 14:05:33 +0000 (16:05 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 14 Sep 2023 09:52:07 +0000 (11:52 +0200)
* lib/unictype/categ_none.c (_UC_CATEGORY_NONE): Use ISO C designated
initializer syntax to initialize the intended field of the union.

ChangeLog
lib/unictype/categ_none.c

index ee2675b0c2a2d82886efa7b37be4fc52841b1444..34a5be87ab10f9cb40c7295daae83ea35bea0d15 100644 (file)
--- 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>.
index 89f4949333e1782470b7930353b10a8b112c2d19..43ae957aa2c0c47d0c9ddc7f8cbae88c21fe3901 100644 (file)
@@ -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 } };