From: Niels Möller Date: Mon, 25 Jun 2012 20:11:51 +0000 (+0200) Subject: Make compiling and running of des-compat-test more silent. X-Git-Tag: nettle_2.5_release_20120707~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cc9526c98860e8edf6811e62a8134fffdc860d6;p=thirdparty%2Fnettle.git Make compiling and running of des-compat-test more silent. --- diff --git a/ChangeLog b/ChangeLog index a7f53c15..b77893f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-06-25 Niels Möller + + * testsuite/des-compat-test.c (test_main): Disable declarations of + disabled functions and variables, to avoid warnings. No verbose + output unless verbose flag is set. + 2012-06-09 Niels Möller * examples/Makefile.in (SOURCES): Added base16dec.c, forgotten diff --git a/testsuite/des-compat-test.c b/testsuite/des-compat-test.c index c820c4e6..257c343d 100644 --- a/testsuite/des-compat-test.c +++ b/testsuite/des-compat-test.c @@ -287,9 +287,11 @@ unsigned char cbc_cksum_data[8]={0x1D,0x26,0x93,0x97,0xf7,0xfe,0x62,0xb4}; #ifndef NOPROTO static char *pt(const unsigned char *p); +#if 0 static int cfb_test(int bits, unsigned char *cfb_cipher); static int cfb64_test(unsigned char *cfb_cipher); static int ede_cfb64_test(unsigned char *cfb_cipher); +#endif #else static char *pt(); static int cfb_test(); @@ -306,12 +308,14 @@ test_main(void) des_cblock cbc_in[5]; des_cblock cbc_out[5]; DES_LONG cs; - unsigned char qret[4][4],cret[8]; + unsigned char cret[8]; +#if 0 + unsigned char qret[4][4]; DES_LONG lqret[4]; int num; char *str; - - printf("Doing ecb\n"); +#endif + if (verbose) printf("Doing ecb\n"); for (i=0; i