From: Bruno Haible Date: Thu, 7 Sep 2023 14:05:33 +0000 (+0200) Subject: unictype/category-none: Fix clang -Wpedantic warning. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=3a1cd63667b0eed13201e837742e372328227bae;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index fa5d262d78..6dfac48a14 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2023-09-07 Bruno Haible + 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 . * lib/c-vsnprintf.c: Include c-vsnprintf.h instead of . 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 } };