]> Savannah Git Hosting - gnulib.git/commitdiff
time: Fix warning about asctime when asctime is not used.
authorBruno Haible <bruno@clisp.org>
Sun, 18 Oct 2020 18:42:56 +0000 (20:42 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 18 Oct 2020 18:42:56 +0000 (20:42 +0200)
* lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
invocation.

ChangeLog
lib/time.in.h

index df3eabfefdd65074f1d5370660b46a5891e831fd..f6705c65e21f71c7e58868415edce067a1df647e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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).
index 3b539c25664773f95c052900613d38acedfd6e7b..2c7172e8a5f042f990d3aca4084b67447025e561 100644 (file)
@@ -356,17 +356,17 @@ _GL_WARN_ON_USE (asctime, "asctime can overrun buffers in some cases - "
 # 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