]> Savannah Git Hosting - gnulib.git/commitdiff
c32srtombs,mbsrtoc32s,mbsrtowcs,wcsrtombs: pacify GCC 14
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Apr 2024 19:43:28 +0000 (12:43 -0700)
committerBruno Haible <bruno@clisp.org>
Fri, 26 Apr 2024 03:57:04 +0000 (05:57 +0200)
* lib/c32srtombs-state.c (_gl_c32srtombs_state):
* lib/mbsrtoc32s-state.c (_gl_mbsrtoc32s_state):
* lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state):
* lib/wcsrtombs-state.c (_gl_wcsrtombs_state):
Add an extern decl for a “private” extern symbol, to pacify GCC
14’s -Wmissing-variable-declarations option.

ChangeLog
lib/c32srtombs-state.c
lib/mbsrtoc32s-state.c
lib/mbsrtowcs-state.c
lib/wcsrtombs-state.c

index 82330c2d8e06ce8c03b947c8fe44323c081ade36..c1350bece488fbb6a87e87230001b25920dd717b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-04-24  Paul Eggert  <eggert@cs.ucla.edu>
+
+       c32srtombs,mbsrtoc32s,mbsrtowcs,wcsrtombs: pacify GCC 14
+       * lib/c32srtombs-state.c (_gl_c32srtombs_state):
+       * lib/mbsrtoc32s-state.c (_gl_mbsrtoc32s_state):
+       * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state):
+       * lib/wcsrtombs-state.c (_gl_wcsrtombs_state):
+       Add an extern decl for a “private” extern symbol, to pacify GCC
+       14’s -Wmissing-variable-declarations option.
+
 2024-04-23  Paul Eggert  <eggert@cs.ucla.edu>
 
        manywarnings: update C warnings for GCC 14
index 4cd95017ec2566a2af94b6424de3211e7dfed4fd..30d7b17bccfde0f0397659e9f03e5e75b2f2af69 100644 (file)
@@ -20,6 +20,7 @@
 #include <wchar.h>
 
 /* Internal state used by the functions c32srtombs() and c32snrtombs().  */
+extern mbstate_t _gl_c32srtombs_state;
 mbstate_t _gl_c32srtombs_state
 /* The state must initially be in an "initial state"; so, zero-initialize it.
    On most systems, putting it into BSS is sufficient.  Not so on Mac OS X 10.3,
index 4f6eeaa9db8ca5dcd6ee0a7c749dd1de20222ac8..6bcd4387dbbeb8eacd85ced442345725b2239d3d 100644 (file)
@@ -20,6 +20,7 @@
 #include <wchar.h>
 
 /* Internal state used by the functions mbsrtoc32s() and mbsnrtoc32s().  */
+extern mbstate_t _gl_mbsrtoc32s_state;
 mbstate_t _gl_mbsrtoc32s_state
 /* The state must initially be in an "initial state"; so, zero-initialize it.
    On most systems, putting it into BSS is sufficient.  Not so on Mac OS X 10.3,
index cbb8753b43c1dba96c9b2f59a660a8d635fa72a3..da036ec581705bd9c30f20135814d48682eae259 100644 (file)
@@ -20,6 +20,7 @@
 #include <wchar.h>
 
 /* Internal state used by the functions mbsrtowcs() and mbsnrtowcs().  */
+extern mbstate_t _gl_mbsrtowcs_state;
 mbstate_t _gl_mbsrtowcs_state
 /* The state must initially be in an "initial state"; so, zero-initialize it.
    On most systems, putting it into BSS is sufficient.  Not so on Mac OS X 10.3,
index 037887a57ff71967a89e8bb5d7e8216f0e87e448..d22dfaee5341df240df8d8ef977805405ff05c03 100644 (file)
@@ -20,6 +20,7 @@
 #include <wchar.h>
 
 /* Internal state used by the functions wcsrtombs() and wcsnrtombs().  */
+extern mbstate_t _gl_wcsrtombs_state;
 mbstate_t _gl_wcsrtombs_state
 /* The state must initially be in an "initial state"; so, zero-initialize it.
    On most systems, putting it into BSS is sufficient.  Not so on Mac OS X 10.3,