+2020-10-18 Bruno Haible <bruno@clisp.org>
+
+ time: Fix warning about asctime when asctime is not used.
+ * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
+ invocation.
+
2020-10-18 Bruno Haible <bruno@clisp.org>
*-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
# endif
# if defined GNULIB_POSIXCHECK
# undef asctime_r
-_GL_WARN_ON_USE (asctime, "asctime_r can overrun buffers in some cases - "
+_GL_WARN_ON_USE (asctime_r, "asctime_r can overrun buffers in some cases - "
"better use strftime (or even sprintf) instead");
# endif
# if defined GNULIB_POSIXCHECK
# undef ctime
-_GL_WARN_ON_USE (asctime, "ctime can overrun buffers in some cases - "
+_GL_WARN_ON_USE (ctime, "ctime can overrun buffers in some cases - "
"better use strftime (or even sprintf) instead");
# endif
# if defined GNULIB_POSIXCHECK
# undef ctime_r
-_GL_WARN_ON_USE (asctime, "ctime_r can overrun buffers in some cases - "
+_GL_WARN_ON_USE (ctime_r, "ctime_r can overrun buffers in some cases - "
"better use strftime (or even sprintf) instead");
# endif