]> Savannah Git Hosting - gnulib.git/commitdiff
localcharset: Avoid internal compiler error with -Wextra on macOS 10.5.
authorBruno Haible <bruno@clisp.org>
Mon, 2 Oct 2023 22:10:08 +0000 (00:10 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 3 Oct 2023 07:49:21 +0000 (09:49 +0200)
* lib/localcharset.c (locale_charset): Use an empty compound statement
instead of a null statement.

ChangeLog
lib/localcharset.c

index b4d2e64483b0f26589aca03743cabe9a964552aa..def332398f7766a033d6a531f34d8aeb65a88ccc 100644 (file)
--- 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-09-15  Bruno Haible  <bruno@clisp.org>
 
        acl-permissions: Fix compilation error on Solaris 11 (regr. 2023-09-04).
index 7ed9c957db684186553b75decd2fb1e98c5292c2..70a29baf3f2ea83e6b1ac8b97b0bd2ce656bb54b 100644 (file)
@@ -1054,7 +1054,7 @@ locale_charset (void)
           }
       }
     if (0)
-      done_table_lookup: ;
+      done_table_lookup: {}
     else
 # endif
       {