From 45ef61e46f69b52ecb2bae63528776058dcccc9d Mon Sep 17 00:00:00 2001 From: toddouska Date: Fri, 24 Jul 2015 12:43:26 -0700 Subject: [PATCH] fix warnings --- wolfcrypt/src/asn.c | 2 +- wolfcrypt/src/integer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index daed24e9d..05d882457 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -7024,7 +7024,7 @@ int wc_EccKeyToDer(ecc_key* key, byte* output, word32 inLen) /* public */ XMEMCPY(output + idx, pub, pubidx); - idx += pubidx; + /* idx += pubidx; not used after write, if more data remove comment */ XFREE(pub, NULL, DYNAMIC_TYPE_TMP_BUFFER); return totalSz; diff --git a/wolfcrypt/src/integer.c b/wolfcrypt/src/integer.c index 383f7dab8..48421d0f4 100644 --- a/wolfcrypt/src/integer.c +++ b/wolfcrypt/src/integer.c @@ -4045,7 +4045,7 @@ static int mp_div_d (mp_int * a, mp_digit b, mp_int * c, mp_digit * d) mp_int q; mp_word w; mp_digit t; - int res, ix; + int res = MP_OKAY, ix; /* cannot divide by zero */ if (b == 0) {