Blame cjdns.sign.patch

f95a3a
diff -up ./crypto/Sign.c.sign ./crypto/Sign.c
51ae82
--- ./crypto/Sign.c.sign	2016-10-11 17:39:44.000000000 -0400
51ae82
+++ ./crypto/Sign.c	2016-10-14 20:59:49.143754098 -0400
f95a3a
@@ -13,6 +13,7 @@
4b7aed
  * along with this program.  If not, see <https: www.gnu.org="" licenses=""/>.
f95a3a
  */
f95a3a
 
f95a3a
+#ifdef SUBNODE
f95a3a
 #include "crypto/Sign.h"
f95a3a
 
51ae82
 #include "node_build/dependencies/cnacl/crypto_sign/ed25519/ref10/ge.h"
f95a3a
@@ -110,3 +111,6 @@ int Sign_publicSigningKeyToCurve25519(ui
f95a3a
 
f95a3a
     return 0;
f95a3a
 }
f95a3a
+#else
f95a3a
+#pragma GCC diagnostic ignored "-Wpedantic"
51ae82
+#endif // SUBNODE
f95a3a
diff -up ./crypto/test/Sign_test.c.sign ./crypto/test/Sign_test.c
51ae82
--- ./crypto/test/Sign_test.c.sign	2016-10-11 17:39:44.000000000 -0400
51ae82
+++ ./crypto/test/Sign_test.c	2016-10-14 20:57:28.737064976 -0400
f95a3a
@@ -23,6 +23,7 @@
f95a3a
 
f95a3a
 int main()
f95a3a
 {
f95a3a
+#ifdef SUBNODE
f95a3a
     struct Allocator* alloc = MallocAllocator_new(1048576);
f95a3a
     struct Log* logger = FileWriterLog_new(stdout, alloc);
f95a3a
     struct Random* rand = Random_new(alloc, logger, NULL);
f95a3a
@@ -42,5 +43,6 @@ int main()
f95a3a
     Assert_true(!Sign_verifyMsg(&signingKeyPair[32], msg));
f95a3a
     Assert_true(!Sign_publicSigningKeyToCurve25519(curve25519publicB, &signingKeyPair[32]));
f95a3a
     Assert_true(!Bits_memcmp(curve25519publicB, curve25519public, 32));
f95a3a
+#endif  // SUBNODE
f95a3a
     return 0;
f95a3a
 }