]> Savannah Git Hosting - gnulib.git/commitdiff
*printf: Avoid "expanded before it was required" warning.
authorBruno Haible <bruno@clisp.org>
Sun, 11 Oct 2020 23:12:42 +0000 (01:12 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 11 Oct 2020 23:12:42 +0000 (01:12 +0200)
* m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
AC_DEFUN_ONCE.

ChangeLog
m4/printf.m4

index 6a0e15de72da51da6fb1c56552538dfd6fa884a3..db803603291194567581c66e7c1dfce1e970763b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-10-11  Bruno Haible  <bruno@clisp.org>
+
+       *printf: Avoid "expanded before it was required" warning.
+       * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
+       AC_DEFUN_ONCE.
+
 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
 
        getprogname: Add support for OpenServer 6 and UnixWare 7.
index c6a7ef684f7076eb432fd93553eb5f455651117a..eeb792b1e40d294ca7a3e539cbe7c1cba9e3bbc6 100644 (file)
@@ -1,4 +1,4 @@
-# printf.m4 serial 69
+# printf.m4 serial 70
 dnl Copyright (C) 2003, 2007-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -1198,7 +1198,7 @@ dnl Test whether the string produced by the snprintf function is always NUL
 dnl terminated. (ISO C99, POSIX:2001)
 dnl Result is gl_cv_func_snprintf_truncation_c99.
 
-AC_DEFUN([gl_SNPRINTF_TRUNCATION_C99],
+AC_DEFUN_ONCE([gl_SNPRINTF_TRUNCATION_C99],
 [
   AC_REQUIRE([AC_PROG_CC])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles