Simon Josefsson wrote: > Hi. I am attempting to update oath-toolkit to latest gnulib, but ran > into this compiler warning: > > call to 'free' declared with attribute warning: free is not future POSIX > compliant everywhere - use gnulib module free for portability > > I can't find any gnulib module 'free'.
We named it to 'free-posix' on 2020-12-18, but forgot to update this message. Also, the designated "future POSIX" was released as POSIX:2024. 2024-11-19 Bruno Haible <br...@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'. diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index a34fe66bfb..adbef69131 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -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