Преглед изворни кода

Avoiding objconv warning about alignment

Source commit: 429ebbbcca9da9b460e0056aca95cadff9b1a6f5
Martin Prikryl пре 6 година
родитељ
комит
b9a0d1240b
1 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      source/putty/sshsh256.c

+ 6 - 1
source/putty/sshsh256.c

@@ -32,7 +32,8 @@
 #   endif
 #endif
 
-// Should be working (when set to HW_SHA256_NI), but we do not have a HW to test this on
+// Should be (almost) working (when set to HW_SHA256_NI), but we do not have a HW to test this on.
+// Need to replace _mm_setr_epi8 and there's also objconv warning about alignment.
 #undef HW_SHA256
 
 #ifdef _FORCE_SHA_NEON
@@ -922,6 +923,8 @@ const ssh_hashalg ssh_sha256_hw = {
 
 #elif HW_SHA256 == HW_SHA256_NONE
 
+#ifndef WINSCP_VS
+
 static bool sha256_hw_available(void)
 {
     return false;
@@ -944,4 +947,6 @@ const ssh_hashalg ssh_sha256_hw = {
         "SHA-256", "!NONEXISTENT ACCELERATED VERSION!"),
 };
 
+#endif // !WINSCP_VS
+
 #endif /* HW_SHA256 */