explicit ignoring the return value of function

This commit is contained in:
Francois Perrad 2015-10-11 10:52:10 +02:00 committed by Steffen Jaeckel
parent b9abe0a316
commit 5bed36d997
7 changed files with 10 additions and 10 deletions

View File

@ -270,7 +270,7 @@ int mp_div (mp_int * a, mp_int * b, mp_int * c, mp_int * d)
}
if (d != NULL) {
mp_div_2d (&x, norm, &x, NULL);
(void)mp_div_2d (&x, norm, &x, NULL);
mp_exch (&x, d);
}

View File

@ -82,7 +82,7 @@ top:
* Each successive "recursion" makes the input smaller and smaller.
*/
if (mp_cmp_mag (x, n) != MP_LT) {
s_mp_sub(x, n, x);
(void)s_mp_sub(x, n, x);
goto top;
}
return MP_OKAY;

View File

@ -61,9 +61,9 @@ int mp_exteuclid(mp_int *a, mp_int *b, mp_int *U1, mp_int *U2, mp_int *U3)
/* make sure U3 >= 0 */
if (u3.sign == MP_NEG) {
mp_neg(&u1, &u1);
mp_neg(&u2, &u2);
mp_neg(&u3, &u3);
(void)mp_neg(&u1, &u1);
(void)mp_neg(&u2, &u2);
(void)mp_neg(&u3, &u3);
}
/* copy result out */

View File

@ -45,7 +45,7 @@ top:
}
if (mp_cmp_mag(a, n) != MP_LT) {
s_mp_sub(a, n, a);
(void)s_mp_sub(a, n, a);
goto top;
}

View File

@ -46,7 +46,7 @@ top:
}
if (mp_cmp_mag(a, n) != MP_LT) {
s_mp_sub(a, n, a);
(void)s_mp_sub(a, n, a);
goto top;
}

View File

@ -46,7 +46,7 @@ int mp_toom_mul(mp_int *a, mp_int *b, mp_int *c)
goto ERR;
}
mp_rshd(&a1, B);
mp_mod_2d(&a1, DIGIT_BIT * B, &a1);
(void)mp_mod_2d(&a1, DIGIT_BIT * B, &a1);
if ((res = mp_copy(a, &a2)) != MP_OKAY) {
goto ERR;
@ -62,7 +62,7 @@ int mp_toom_mul(mp_int *a, mp_int *b, mp_int *c)
goto ERR;
}
mp_rshd(&b1, B);
mp_mod_2d(&b1, DIGIT_BIT * B, &b1);
(void)mp_mod_2d(&b1, DIGIT_BIT * B, &b1);
if ((res = mp_copy(b, &b2)) != MP_OKAY) {
goto ERR;

View File

@ -39,7 +39,7 @@ mp_toom_sqr(mp_int *a, mp_int *b)
goto ERR;
}
mp_rshd(&a1, B);
mp_mod_2d(&a1, DIGIT_BIT * B, &a1);
(void)mp_mod_2d(&a1, DIGIT_BIT * B, &a1);
if ((res = mp_copy(a, &a2)) != MP_OKAY) {
goto ERR;