https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115903
Bug ID: 115903
Summary: libcpp/macro.cc:528:19: style: Obsolete function
'asctime' called
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Static analyser cppcheck says:
libcpp/macro.cc:528:19: style: Obsolete function 'asctime' called. It is
recommended to use 'strftime' instead. [asctimeCalled]
Source code is
char *str = asctime (tb);
man asctime says marked obsolete in POSIX.1-2008, which is 16 years ago.