From 5ad1ac1302b338fab5b0dddf443f5dfb782588db 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 b4d2e64483..def332398f 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-09-15 Bruno Haible acl-permissions: Fix compilation error on Solaris 11 (regr. 2023-09-04). 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