Fixes unused argument build error seen on CrossWorks (Issue #255).

pull/259/head
David Garske 2016-01-14 21:09:01 -08:00
parent d20b8880f0
commit 07c79f9dc3
2 changed files with 5 additions and 2 deletions

View File

@ -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();

View File

@ -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;