fix warnings

This commit is contained in:
toddouska
2015-07-24 12:43:26 -07:00
parent aaf7f63eef
commit 45ef61e46f
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -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) {