summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-10-09 09:36:06 +1100
committerDarren Tucker <dtucker@dtucker.net>2019-10-09 09:36:06 +1100
commit86a0323374cbd404629e75bb320b3fa1c16aaa6b (patch)
tree49e75a8caecc0cae0d8dc84766c8995b9b98393c
parentcfc1897a2002ec6c4dc879b24e8b3153c87ea2cf (diff)
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.
-rw-r--r--openbsd-compat/sha2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsd-compat/sha2.c b/openbsd-compat/sha2.c
index bd62f9573..e63324c99 100644
--- a/openbsd-compat/sha2.c
+++ b/openbsd-compat/sha2.c
@@ -41,7 +41,8 @@
41#if !defined(HAVE_SHA256UPDATE) || !defined(HAVE_SHA384UPDATE) || \ 41#if !defined(HAVE_SHA256UPDATE) || !defined(HAVE_SHA384UPDATE) || \
42 !defined(HAVE_SHA512UPDATE) 42 !defined(HAVE_SHA512UPDATE)
43 43
44#define MAKE_CLONE(x, y) /* no-op out */ 44/* no-op out, similar to DEF_WEAK but only needed here */
45#define MAKE_CLONE(x, y) void __ssh_compat_make_clone_##x_##y(void);
45 46
46#include <string.h> 47#include <string.h>
47#include <sha2.h> 48#include <sha2.h>