]> 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>
Mon, 2 Oct 2023 22:10:08 +0000 (00:10 +0200)
* lib/localcharset.c (locale_charset): Use an empty compound statement
instead of a null statement.

ChangeLog
lib/localcharset.c

index a8323ba86cf0e9b679cea89cea5615bff03a6bbb..fe52e1539f5df0bac4b029b72e8428e39f8697aa 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-10-02  KO Myung-Hun  <komh78@gmail.com>
 
        fchdir: Fix a compilation error on OS/2 kLIBC (regression 2023-09-29).
index 7ed9c957db684186553b75decd2fb1e98c5292c2..70a29baf3f2ea83e6b1ac8b97b0bd2ce656bb54b 100644 (file)
@@ -1054,7 +1054,7 @@ locale_charset (void)
           }
       }
     if (0)
-      done_table_lookup: ;
+      done_table_lookup: {}
     else
 # endif
       {