From dec9532d333d60511018fa5c6f4d5189c34a9718 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 19 Nov 2024 16:03:01 +0100 Subject: [PATCH] stdlib: Adjust warning about function 'free'. Reported by Simon Josefsson in . * lib/stdlib.in.h (free): Talk about POSIX:2024, not future POSIX. Recommend module 'free-posix'. --- ChangeLog | 8 ++++++++ lib/stdlib.in.h | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 966aff1bd1..bf5f6381c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2024-11-19 Bruno Haible + + stdlib: Adjust warning about function 'free'. + Reported by Simon Josefsson in + . + * lib/stdlib.in.h (free): Talk about POSIX:2024, not future POSIX. + Recommend module 'free-posix'. + 2024-11-18 Pádraig Brady maint: avoid sc_prohibit_undesirable_word_seq failure 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 -- 2.39.5