]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
intl: Fix a gcc 14 -Wmissing-variable-declarations warning.
authorBruno Haible <bruno@clisp.org>
Wed, 4 Dec 2024 08:26:15 +0000 (09:26 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 4 Dec 2024 08:26:15 +0000 (09:26 +0100)
* gettext-runtime/intl/gettextP.h (_nl_state_lock): New declaration.
* gettext-runtime/intl/bindtextdom.c (_nl_state_lock): Remove declaration.
* gettext-runtime/intl/textdomain.c (_nl_state_lock): Remove declaration.

gettext-runtime/intl/bindtextdom.c
gettext-runtime/intl/gettextP.h
gettext-runtime/intl/textdomain.c

index 0b35c8e33c3e5809e3dc5bee3ed4d0d40bd72de5..73ddf76ff3888605a5a5bfdc2d9c6343f20ed0fa 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the bindtextdomain(3) function
-   Copyright (C) 1995-2023 Free Software Foundation, Inc.
+   Copyright (C) 1995-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
@@ -43,9 +43,6 @@
 
 /* @@ end of prolog @@ */
 
-/* Lock variable to protect the global data in the gettext implementation.  */
-gl_rwlock_define (extern, _nl_state_lock attribute_hidden)
-
 
 /* Names for the libintl functions are a problem.  They must not clash
    with existing names and they should follow ANSI C.  But this source
index 8059a7641c8b2d9824bfb23748f5c349a6c43c70..ee1b4fb724ee53ef38b54a5e5dd9855341790e91 100644 (file)
@@ -109,6 +109,10 @@ SWAP (nls_uint32 i)
 #endif
 
 
+/* Lock variable to protect the global data in the gettext implementation.  */
+gl_rwlock_define (extern, _nl_state_lock attribute_hidden)
+
+
 /* In-memory representation of system dependent string.  */
 struct sysdep_string_desc
 {
index 6db0f72276e3dc373774f85813a51d94bf530788..d73d90f6fd61cccbbd9e490bfec9b9a294fab3f5 100644 (file)
@@ -1,5 +1,5 @@
 /* Implementation of the textdomain(3) function.
-   Copyright (C) 1995-2023 Free Software Foundation, Inc.
+   Copyright (C) 1995-2024 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
@@ -54,9 +54,6 @@
 # define TEXTDOMAIN libintl_textdomain
 #endif
 
-/* Lock variable to protect the global data in the gettext implementation.  */
-gl_rwlock_define (extern, _nl_state_lock attribute_hidden)
-
 /* Set the current default message catalog to DOMAINNAME.
    If DOMAINNAME is null, return the current default.
    If DOMAINNAME is "", reset to the default of "messages".  */