From 40714755583f67b502216703c754f7ec2ad2d8a1 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Thu, 28 Aug 2014 13:53:51 +0200 Subject: [PATCH] fix compiler warnings --- testprof/no_prng.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/testprof/no_prng.c b/testprof/no_prng.c index dfcb831..69c0259 100644 --- a/testprof/no_prng.c +++ b/testprof/no_prng.c @@ -28,6 +28,7 @@ static unsigned long no_prng_offset = 0; */ int no_prng_start(prng_state *prng) { + LTC_UNUSED_PARAM(prng); no_prng_len = 0; no_prng_offset = 0; @@ -43,6 +44,7 @@ int no_prng_start(prng_state *prng) */ int no_prng_add_entropy(const unsigned char *in, unsigned long inlen, prng_state *prng) { + LTC_UNUSED_PARAM(prng); LTC_ARGCHK(in != NULL); LTC_ARGCHK(inlen <= sizeof(no_prng_entropy)); @@ -75,6 +77,7 @@ int no_prng_ready(prng_state *prng) */ unsigned long no_prng_read(unsigned char *out, unsigned long outlen, prng_state *prng) { + LTC_UNUSED_PARAM(prng); LTC_ARGCHK(out != NULL); outlen = MIN(outlen, no_prng_len - no_prng_offset); @@ -91,6 +94,7 @@ unsigned long no_prng_read(unsigned char *out, unsigned long outlen, prng_state */ int no_prng_done(prng_state *prng) { + LTC_UNUSED_PARAM(prng); return CRYPT_OK; } @@ -103,6 +107,9 @@ int no_prng_done(prng_state *prng) */ int no_prng_export(unsigned char *out, unsigned long *outlen, prng_state *prng) { + LTC_UNUSED_PARAM(out); + LTC_UNUSED_PARAM(outlen); + LTC_UNUSED_PARAM(prng); return CRYPT_OK; } @@ -115,6 +122,9 @@ int no_prng_export(unsigned char *out, unsigned long *outlen, prng_state *prng) */ int no_prng_import(const unsigned char *in, unsigned long inlen, prng_state *prng) { + LTC_UNUSED_PARAM(in); + LTC_UNUSED_PARAM(inlen); + LTC_UNUSED_PARAM(prng); return CRYPT_OK; }