From 07c79f9dc3a82b23433ebf94432ba1af14d973e3 Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 14 Jan 2016 21:09:01 -0800 Subject: [PATCH] Fixes unused argument build error seen on CrossWorks (Issue #255). --- wolfcrypt/benchmark/benchmark.c | 5 +++-- wolfcrypt/src/aes.c | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index 723194418..1f2ca1182 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -238,11 +238,12 @@ static const XGEN_ALIGN byte iv[] = int main(int argc, char** argv) { - (void)argc; - (void)argv; + (void)argc; + (void)argv; #else int benchmark_test(void *args) { + (void)args; #endif wolfCrypt_Init(); diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index c27c55425..a7788c625 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -1512,6 +1512,8 @@ static void wc_AesDecrypt(Aes* aes, const byte* inBlock, byte* outBlock) int ret; byte *rk = (byte*)aes->key; + (void)dir; + if (!((keylen == 16) || (keylen == 24) || (keylen == 32))) return BAD_FUNC_ARG;