From 856b0264ee01ecb57ebbc75d12bf1c49e857a455 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 3 Oct 2023 00:10:08 +0200 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ lib/localcharset.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a8323ba86c..fe52e1539f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-10-02 Bruno Haible + + 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 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 { -- 2.39.5