]> Savannah Git Hosting - gnulib.git/commitdiff
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 10:15:45 +0000 (12:15 +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 fa5d262d7889e2cdd30a3853c2688dd244160f79..6dfac48a14d5efb3e3b8ccbde529adfe4f17c570 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 } };