lib/time.in.h, ctime has portability problems; with clang and groff

2024-02-03 Thread Bjarni Ingi Gislason
The gnulib module "ctime" declares "ctime" to be deprecated. "ctime" is not used in "groff". CC lib/libgnu_a-openat-proc.o In file included from ../lib/openat-proc.c:25: In file included from ./lib/sys/stat.h:51: ./lib/time.h:1094:18: warning: ctime has portability problems - use gnul

Re: lib/time.in.h, ctime has portability problems; with clang and groff

2024-02-03 Thread Paul Eggert
Thanks for reporting that. I installed the attached. From 0feb561817782449678a602a7b7cd442da6db585 Mon Sep 17 00:00:00 2001 From: Paul Eggert 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-

Re: lib/time.in.h, ctime has portability problems; with clang and groff

2024-02-05 Thread Bruno Haible
Bjarni Ingi Gislason wrote: > "ctime" is not used in "groff". Indeed, it was replaced with a call to 'asctime' in https://git.savannah.gnu.org/gitweb/?p=groff.git;a=commitdiff;h=d7bbfb04ea25a82a8597cdef6ebb391cb78ab47c

Re: lib/time.in.h, ctime has portability problems; with clang and groff

2024-02-05 Thread Bruno Haible
Paul Eggert wrote: > Thanks for reporting that. I installed the attached. Thanks. So, at the root, it was a restriction w.r.t. _GL_WARN_ON_USE, that we did not know about. Let me document it. 2024-02-05 Bruno Haible snippet/warn-on-use: Add comment. * lib/warn-on-use.h: Docum

Re: lib/time.in.h, ctime has portability problems; with clang and groff

2024-02-05 Thread Paul Eggert
On 2024-02-05 05:41, Bruno Haible wrote: Bjarni Ingi Gislason wrote: "ctime" is not used in "groff". Indeed, it was replaced with a call to 'asctime' in https://git.savannah.gnu.org/gitweb/?p=groff.git;a=commitdiff;h=d7bbfb04ea25a82a8597cdef6ebb391cb78ab47c Unfortunately asctime suffers fr