bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Bjarni Ingi Gislason
Subject: lib/time.in.h, ctime has portability problems; with clang and groff
Date: Sat, 3 Feb 2024 13:25:16 +0000

  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 gnulib module ctime for portability [-Wuser-defined-warnings]
_GL_WARN_ON_USE (ctime, "ctime can overrun buffers in some cases -
"
                 ^
./lib/time.h:956:1: note: from 'diagnose_if' attribute on 'ctime':
_GL_WARN_ON_USE (ctime, "ctime has portability problems - "
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/sys/select.h:593:19: note: expanded from macro
'_GL_WARN_ON_USE'
  __attribute__ ((__diagnose_if__ (1, message, "warning")))
                  ^                ~
1 warning generated.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]