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.
This commit is contained in:
Darren Tucker 2019-10-09 09:36:06 +11:00
parent cfc1897a20
commit 86a0323374
1 changed files with 2 additions and 1 deletions

View File

@ -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>