Silence warnings from libtomcrypt
authorMikko Rasa <tdb@tdb.fi>
Wed, 2 Nov 2011 10:42:20 +0000 (12:42 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 2 Nov 2011 10:42:20 +0000 (12:42 +0200)
src/CryptHelpers.cpp
src/Makefile.am

index 0c40b18..076e23f 100755 (executable)
@@ -8,6 +8,10 @@
 #define LTM_DESC
 #define SHA1_DESC
 #define YARROW_DESC
+
+// tomcrypt want to #define ENDIAN_LITTLE, which is also in our own config.h.  We're not using it in this file anyway.
+#undef ENDIAN_LITTLE
+
 #include "libtomcrypt/src/headers/tomcrypt.h"
 
 static const ltc_prng_descriptor *g_PRNGDesc; // HACK: this _MIGHT_ be better off as g_SigHashDesc or something
index cd95149..5f4b97e 100755 (executable)
@@ -41,7 +41,7 @@ all: $(srcdir)/libtomcrypt/libtomcrypt.a $(srcdir)/libtommath/libtommath.a
 endif
 
 $(srcdir)/libtomcrypt/libtomcrypt.a: $(srcdir)/libtommath/libtommath.a
-       cd $(srcdir)/libtomcrypt && CFLAGS="$(CFLAGS) -I$(srcdir)/../libtommath -DLTM_DESC" $(MAKE)
+       cd $(srcdir)/libtomcrypt && CFLAGS="$(CFLAGS) -Wno-unused-but-set-variable -I$(srcdir)/../libtommath -DLTM_DESC" $(MAKE)
 
 $(srcdir)/libtommath/libtommath.a:
        cd $(srcdir)/libtommath && $(MAKE)