]> Savannah Git Hosting - gnulib.git/commitdiff
stdlib: Adjust warning about function 'free'.
authorBruno Haible <bruno@clisp.org>
Tue, 19 Nov 2024 15:03:01 +0000 (16:03 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 19 Nov 2024 15:06:11 +0000 (16:06 +0100)
Reported by Simon Josefsson in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00158.html>.

* lib/stdlib.in.h (free): Talk about POSIX:2024, not future POSIX.
Recommend module 'free-posix'.

ChangeLog
lib/stdlib.in.h

index 966aff1bd12886ac82f6f1dd071c8bfe7a0155a0..bf5f6381c1a6ac2ab64a17adb0a8ec4b1088cbde 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-11-19  Bruno Haible  <bruno@clisp.org>
+
+       stdlib: Adjust warning about function 'free'.
+       Reported by Simon Josefsson in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00158.html>.
+       * lib/stdlib.in.h (free): Talk about POSIX:2024, not future POSIX.
+       Recommend module 'free-posix'.
+
 2024-11-18  Pádraig Brady  <P@draigBrady.com>
 
        maint: avoid sc_prohibit_undesirable_word_seq failure
index a34fe66bfb924715c1d4360d44be24081630ee48..adbef69131bde20a22dc307684d901db73f844d0 100644 (file)
@@ -291,8 +291,8 @@ _GL_CXXALIASWARN (free);
 #elif defined GNULIB_POSIXCHECK
 # undef free
 /* Assume free is always declared.  */
-_GL_WARN_ON_USE (free, "free is not future POSIX compliant everywhere - "
-                 "use gnulib module free for portability");
+_GL_WARN_ON_USE (free, "free is not POSIX:2024 compliant everywhere - "
+                 "use gnulib module free-posix for portability");
 #endif