From: Bruno Haible Date: Sun, 11 Oct 2020 23:12:42 +0000 (+0200) Subject: *printf: Avoid "expanded before it was required" warning. X-Git-Tag: v1.0~3569 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=160d5e7d9a64a29a52d4821fd0ef2136d7e2102a;p=gnulib.git *printf: Avoid "expanded before it was required" warning. * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through AC_DEFUN_ONCE. --- diff --git a/ChangeLog b/ChangeLog index 6a0e15de72..db80360329 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2020-10-11 Bruno Haible + + *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 getprogname: Add support for OpenServer 6 and UnixWare 7. diff --git a/m4/printf.m4 b/m4/printf.m4 index c6a7ef684f..eeb792b1e4 100644 --- a/m4/printf.m4 +++ b/m4/printf.m4 @@ -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