]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Make MAKE_CLONE no-op macro more correct.
authorDarren Tucker <dtucker@dtucker.net>
Tue, 8 Oct 2019 22:36:06 +0000 (09:36 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Tue, 8 Oct 2019 22:36:06 +0000 (09:36 +1100)
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

index bd62f9573511144141d82fa62d5bd1e3b8369e3e..e63324c99826c9551b884ed03782249de4c644ac 100644 (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>