[openssh-commits] [openssh] 01/01: Fix function body for variadic macro test.

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Nov 6 17:12:54 AEDT 2020


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 6d2564b94e51184eb0b73b97d13a36ad50b4f810
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Fri Nov 6 17:11:16 2020 +1100

    Fix function body for variadic macro test.
    
    AC_LANG_PROGRAM puts its second argument inside main() so we don't need
    to do it ourselves.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 07b080fd..92f45a82 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,7 +26,7 @@ AC_MSG_CHECKING([if $CC supports C99-style variadic macros])
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 int f(int a, int b, int c) { return a + b + c; }
 #define F(a, ...) f(a, __VA_ARGS__)
-]], [[int main(void) { return F(1, 2, -3); }]])],
+]], [[return F(1, 2, -3);]])],
 	[ AC_MSG_RESULT([yes]) ],
 	[ AC_MSG_ERROR([*** OpenSSH requires support for C99-style variadic macros]) ]
 )

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list