[openssh-commits] [openssh] 01/01: Make MAKE_CLONE no-op macro more correct.
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed Oct 9 09:38:41 AEDT 2019
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 86a0323374cbd404629e75bb320b3fa1c16aaa6b
Author: Darren Tucker <dtucker at dtucker.net>
Date: Wed Oct 9 09:36:06 2019 +1100
Make MAKE_CLONE no-op macro more correct.
Similar to the previous change to DEF_WEAK, some compilers don't like
the empty statement, so convert into a no-op function prototype.
---
openbsd-compat/sha2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/openbsd-compat/sha2.c b/openbsd-compat/sha2.c
index bd62f957..e63324c9 100644
--- a/openbsd-compat/sha2.c
+++ b/openbsd-compat/sha2.c
@@ -41,7 +41,8 @@
#if !defined(HAVE_SHA256UPDATE) || !defined(HAVE_SHA384UPDATE) || \
!defined(HAVE_SHA512UPDATE)
-#define MAKE_CLONE(x, y) /* no-op out */
+/* no-op out, similar to DEF_WEAK but only needed here */
+#define MAKE_CLONE(x, y) void __ssh_compat_make_clone_##x_##y(void);
#include <string.h>
#include <sha2.h>
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list