Thanks for reporting that. I installed the attached.

From 0feb561817782449678a602a7b7cd442da6db585 Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Sat, 3 Feb 2024 12:05:17 -0800
Subject: [PATCH] ctime: fix false positive

Problem reported by Bjarni Ingi Gislason in:
https://lists.gnu.org/r/bug-gnulib/2024-02/msg00006.html
* lib/time.in.h (ctime): Do not warn about ctime portability,
as there is a more serious warning about it crashing,
and the two warning directives can cause false alarms.
---
 ChangeLog     | 9 +++++++++
 lib/time.in.h | 6 +-----
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4711be3dd9..84f91b4fc9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-02-03  Paul Eggert  <egg...@cs.ucla.edu>
+
+	ctime: fix false positive
+	Problem reported by Bjarni Ingi Gislason in:
+	https://lists.gnu.org/r/bug-gnulib/2024-02/msg00006.html
+	* lib/time.in.h (ctime): Do not warn about ctime portability,
+	as there is a more serious warning about it crashing,
+	and the two warning directives can cause false alarms.
+
 2024-01-31  Bruno Haible  <br...@clisp.org>
 
 	Implement 3 new properties, added by Unicode 15.1.0.
diff --git a/lib/time.in.h b/lib/time.in.h
index ce28f1af25..df99c8abca 100644
--- a/lib/time.in.h
+++ b/lib/time.in.h
@@ -438,11 +438,7 @@ _GL_CXXALIAS_SYS (ctime, char *, (time_t const *__tp));
 _GL_CXXALIASWARN (ctime);
 #  endif
 # elif defined GNULIB_POSIXCHECK
-#  undef ctime
-#  if HAVE_RAW_DECL_CTIME
-_GL_WARN_ON_USE (ctime, "ctime has portability problems - "
-                 "use gnulib module ctime for portability");
-#  endif
+/* No need to warn about portability, as a more serious warning is below.  */
 # endif
 
 /* Convert *TP to a date and time string.  See
-- 
2.40.1

Reply via email to