From: Bruno Haible <bruno@clisp.org> Date: Mon, 2 Oct 2023 22:10:08 +0000 (+0200) Subject: localcharset: Avoid internal compiler error with -Wextra on macOS 10.5. X-Git-Tag: v1.0~754 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=856b0264ee01ecb57ebbc75d12bf1c49e857a455;p=gnulib.git localcharset: Avoid internal compiler error with -Wextra on macOS 10.5. * lib/localcharset.c (locale_charset): Use an empty compound statement instead of a null statement. --- diff --git a/ChangeLog b/ChangeLog index a8323ba86c..fe52e1539f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-10-02 Bruno Haible <bruno@clisp.org> + + localcharset: Avoid internal compiler error with -Wextra on macOS 10.5. + * lib/localcharset.c (locale_charset): Use an empty compound statement + instead of a null statement. + 2023-10-02 KO Myung-Hun <komh78@gmail.com> fchdir: Fix a compilation error on OS/2 kLIBC (regression 2023-09-29). diff --git a/lib/localcharset.c b/lib/localcharset.c index 7ed9c957db..70a29baf3f 100644 --- a/lib/localcharset.c +++ b/lib/localcharset.c @@ -1054,7 +1054,7 @@ locale_charset (void) } } if (0) - done_table_lookup: ; + done_table_lookup: {} else # endif {