]> 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>
Sun, 1 Dec 2024 06:58:59 +0000 (07:58 +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 b3a1b99bef5bca643dea113f840317062f44b429..71106fcc6dbbee35831840d2597f8579d0cb3bff 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-17  Jan Palus  <jpalus@fastmail.com>  (tiny change)
 
        md5-stream, sha*-stream, sm3-stream: Avoid duplicate symbols.
index 6caf0836c630972cf8ee23da43e29a9ea0611fbf..d6faae11dfd69a73b7607ad802fdaafa68b6477b 100644 (file)
@@ -263,8 +263,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