Explorar o código

Fix build on 32-bit systems.

Nick Mathewson %!s(int64=8) %!d(string=hai) anos
pai
achega
47edbd4fad
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      src/ext/ed25519/donna/ed25519-donna.h

+ 10 - 0
src/ext/ed25519/donna/ed25519-donna.h

@@ -10,6 +10,16 @@
 
 
 #include "ed25519-donna-portable.h"
+#include "orconfig.h"
+
+#ifdef HAVE_CFLAG_WOVERLENGTH_STRINGS
+/* Some of the ASM here is very long strings. */
+#ifdef __clang__
+#pragma clang diagnostic ignored "-Woverlength-strings"
+#else
+#pragma GCC diagnostic ignored "-Woverlength-strings"
+#endif
+#endif
 
 #if defined(ED25519_SSE2)
 #else