]> 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, 7 Sep 2023 14:24:28 +0000 (16:24 +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 35dac33cc919e3384e0831f271fc1200af64ed96..b5f09d46cb8463e8a59176f6a933b0bb8b613bf5 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 } };