Created
August 18, 2013 12:24
-
-
Save geoff-nixon/6261392 to your computer and use it in GitHub Desktop.
gmp 5.1.2: clang (all warnings)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> make; make check -i | |
... (abridged) ... | |
gen-trialdivtab.c:149:3: warning: Value stored to 'interval_start' is never read | |
interval_start = start_p; | |
^ ~~~~~~~ | |
gen-trialdivtab.c:150:3: warning: Value stored to 'interval_end' is never read | |
interval_end = 0; | |
^ ~ | |
gen-trialdivtab.c:186:4: warning: Value stored to 'interval_start' is never read | |
interval_start = t; | |
^ ~ | |
gen-trialdivtab.c:193:7: warning: Value stored to 'interval_end' is never read | |
interval_end = t; | |
^ ~ | |
4 warnings generated. | |
... | |
divis.c:144:18: warning: The left operand of '>=' is a garbage value | |
if (rp[an - 1] >= dp[dn - 1]) | |
~~~~~~~~~~ ^ | |
1 warning generated. | |
... | |
mod_1_3.c:129:7: warning: Assigned value is garbage or undefined | |
umul_ppmm (ch, cl, rl, B3modb); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../longlong.h:1963:12: note: expanded from macro 'umul_ppmm' | |
UWtype __u = (u), __v = (v); \ | |
^~~ ~~~ | |
mod_1_3.c:136:3: warning: Assigned value is garbage or undefined | |
umul_ppmm (rh, cl, rh, B1modb); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../longlong.h:1963:12: note: expanded from macro 'umul_ppmm' | |
UWtype __u = (u), __v = (v); \ | |
^~~ ~~~ | |
2 warnings generated. | |
... | |
mod_1_4.c:143:7: warning: Assigned value is garbage or undefined | |
umul_ppmm (ch, cl, rl, B4modb); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../longlong.h:1963:12: note: expanded from macro 'umul_ppmm' | |
UWtype __u = (u), __v = (v); \ | |
^~~ ~~~ | |
mod_1_4.c:150:3: warning: Assigned value is garbage or undefined | |
umul_ppmm (rh, cl, rh, B1modb); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../longlong.h:1963:12: note: expanded from macro 'umul_ppmm' | |
UWtype __u = (u), __v = (v); \ | |
^~~ ~~~ | |
2 warnings generated. | |
... | |
sqrtrem.c:255:4: warning: Value stored to 'q' is never read | |
q -= mpn_sub_1 (sp, sp, n, CNST_LIMB(1)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
get_str.c:271:10: warning: Assigned value is garbage or undefined | |
ul = rp[1]; | |
^ ~~~~~ | |
get_str.c:307:8: warning: Function call argument is an uninitialized value | |
str = mpn_sb_get_str (str, len, up, un, powtab->base); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
get_str.c:323:11: warning: Assigned value is garbage or undefined | |
pwp = powtab->p; | |
^ ~~~~~~~~~ | |
3 warnings generated. | |
... | |
mul_fft.c:516:8: warning: Value stored to 'cc' is never read | |
cc = mpn_add_1 (tp, tp, n2, cc); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
mul_fft.c:781:4: warning: Value stored to 'cc' is never read | |
cc = mpn_sub_1 (p + pla - pl, p + pla - pl, pl, cc); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
2 warnings generated. | |
... | |
div_q.c:171:8: warning: Value stored to 'qh' is never read | |
qh = 0; /* currently ignored */ | |
^ ~ | |
div_q.c:264:8: warning: Value stored to 'qh' is never read | |
qh = 0; /* currently ignored */ | |
^ ~ | |
2 warnings generated. | |
... | |
matrix22_mul1_inverse_vector.c:44:3: warning: Value stored to 'h0' is never read | |
h0 = mpn_mul_1 (rp, ap, n, M->u[1][1]); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
matrix22_mul1_inverse_vector.c:45:3: warning: Value stored to 'h1' is never read | |
h1 = mpn_submul_1 (rp, bp, n, M->u[0][1]); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
matrix22_mul1_inverse_vector.c:48:3: warning: Value stored to 'h0' is never read | |
h0 = mpn_mul_1 (bp, bp, n, M->u[0][0]); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
matrix22_mul1_inverse_vector.c:49:3: warning: Value stored to 'h1' is never read | |
h1 = mpn_submul_1 (bp, ap, n, M->u[1][0]); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
4 warnings generated. | |
... | |
toom62_mul.c:103:54: warning: '&' within '|' [-Wbitwise-op-parentheses] | |
aflags = (enum toom7_flags) (aflags | toom7_w1_neg & __gmpn_toom_eval_pm2 (as2, asm2, 5, ap, n, s, gp)); | |
~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
toom62_mul.c:103:54: note: place parentheses around the '&' expression to silence this warning | |
aflags = (enum toom7_flags) (aflags | toom7_w1_neg & __gmpn_toom_eval_pm2 (as2, asm2, 5, ap, n, s, gp)); | |
^ | |
( ) | |
1 warning generated. | |
... | |
toom53_mul.c:102:52: warning: '&' within '|' [-Wbitwise-op-parentheses] | |
flags = (enum toom7_flags) (flags | toom7_w1_neg & __gmpn_toom_eval_pm2 (as2, asm2, 4, ap, n, s, gp)); | |
~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
toom53_mul.c:102:52: note: place parentheses around the '&' expression to silence this warning | |
flags = (enum toom7_flags) (flags | toom7_w1_neg & __gmpn_toom_eval_pm2 (as2, asm2, 4, ap, n, s, gp)); | |
^ | |
( ) | |
1 warning generated. | |
... | |
toom44_mul.c:209:52: warning: '&' within '|' [-Wbitwise-op-parentheses] | |
flags = (enum toom7_flags) (flags | toom7_w3_neg & __gmpn_toom_eval_dgr3_pm1 (pp, (pp + n + 1), ap, n, s, (scratch + 8*n + 5))); | |
~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
toom44_mul.c:209:52: note: place parentheses around the '&' expression to silence this warning | |
flags = (enum toom7_flags) (flags | toom7_w3_neg & __gmpn_toom_eval_dgr3_pm1 (pp, (pp + n + 1), ap, n, s, (scratch + 8*n + 5))); | |
^ | |
( ) | |
1 warning generated. | |
... | |
toom_interpolate_5pts.c:61:7: warning: expression result unused [-Wunused-value] | |
((3 & __gmpn_bdiv_dbm1c (v2, v2, kk1, ((mp_limb_t) (((~ ((mp_limb_t) (0))) >> 0) / 3)), ((mp_limb_t) (0))))); | |
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
toom_interpolate_6pts.c:136:6: warning: expression result unused [-Wunused-value] | |
(3 & __gmpn_bdiv_dbm1c (w2, w2, 2 * n + 1, ((mp_limb_t) (((~ ((mp_limb_t) (0))) >> 0) / 3)), ((mp_limb_t) (0)))); | |
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
toom_interpolate_6pts.c:144:6: warning: expression result unused [-Wunused-value] | |
(3 & __gmpn_bdiv_dbm1c (w1, w1, 2 * n + 1, ((mp_limb_t) (((~ ((mp_limb_t) (0))) >> 0) / 3)), ((mp_limb_t) (0)))); | |
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
2 warnings generated. | |
... | |
toom_interpolate_7pts.c:193:6: warning: expression result unused [-Wunused-value] | |
(3 & __gmpn_bdiv_dbm1c (w4, w4, m, ((mp_limb_t) (((~ ((mp_limb_t) (0))) >> 0) / 3)), ((mp_limb_t) (0)))); | |
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
toom_interpolate_7pts.c:202:7: warning: expression result unused [-Wunused-value] | |
(15 & 1 * __gmpn_bdiv_dbm1c (w1, w1, m, ((mp_limb_t) (((~ ((mp_limb_t) (0))) >> 0) / 15)), ((mp_limb_t) (0)))); | |
~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
2 warnings generated. | |
... | |
toom_interpolate_8pts.c:153:7: warning: expression result unused [-Wunused-value] | |
((3 & __gmpn_bdiv_dbm1c (r5, r5, 3 * n + 1, ((mp_limb_t) (((~ ((mp_limb_t) (0))) >> 0) / 3)), ((mp_limb_t) (0))))); | |
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
toom_interpolate_12pts.c:254:8: warning: expression result unused [-Wunused-value] | |
(255 & 1 * __gmpn_bdiv_dbm1c (r5, r5, n3p1, ((mp_limb_t) (((~ ((mp_limb_t) (0))) >> 0) / 255)), ((mp_limb_t) (0)))); | |
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
mulmod_bnm1.c:314:4: warning: Value stored to 'cy' is never read | |
cy = mpn_sub_1 (rp, rp, an + bn, cy); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
div_qr_2.c:254:4561: warning: & has lower precedence than >=; >= will be evaluated first [-Wparentheses] | |
div_qr_2.c:254:4561: note: place parentheses around the '>=' expression to silence this warning | |
div_qr_2.c:254:4561: note: place parentheses around the & expression to evaluate it first | |
1 warning generated. | |
... | |
cfdiv_q_2exp.c:51:64: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((wsize+1) > ((w)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(w,wsize+1) : ((w)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | |
1 warning generated. | |
... | |
sqrmod_bnm1.c:267:4: warning: Value stored to 'cy' is never read | |
cy = mpn_sub_1 (rp, rp, 2*an, cy); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
dcpi1_div_qr.c:136:8: warning: Value stored to 'cy' is never read | |
cy = mpn_submul_1 (np - dn, dp - dn, dn, q); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
sbpi1_div_q.c:282:9: warning: Value stored to 'cy' is never read | |
cy = mpn_sub_1 (qp, qp, qn, 1); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
dcpi1_divappr_q.c:130:8: warning: Value stored to 'cy' is never read | |
cy = mpn_submul_1 (np - dn, dp - dn, dn, q); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
sbpi1_divappr_q.c:170:3: warning: Value stored to 'flag' is never read | |
flag = 0; | |
^ ~ | |
1 warning generated. | |
... | |
mu_div_qr.c:328:4: warning: Value stored to 'cy' is never read | |
cy = mpn_sub_n (rp, rp, dp, dn); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
mu_divappr_q.c:278:6: warning: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage | |
cy += mpn_add_1 (qp, qp, qn, 3); | |
~~ ^ | |
1 warning generated. | |
... | |
sbpi1_div_qr_sec.c:77:3: warning: Value stored to 'cy' is never read | |
cy = mpn_lshift (hp, dp, dn, GMP_NUMB_BITS / 2); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
sbpi1_div_qr_sec.c:105:7: warning: Value stored to 'cy' is never read | |
cy = mpn_submul_1 (np - dn, hp, dn + 1, q1h); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
2 warnings generated. | |
... | |
sbpi1_div_r_sec.c:77:3: warning: Value stored to 'cy' is never read | |
cy = mpn_lshift (hp, dp, dn, GMP_NUMB_BITS / 2); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
sbpi1_div_r_sec.c:105:7: warning: Value stored to 'cy' is never read | |
cy = mpn_submul_1 (np - dn, hp, dn + 1, q1h); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
2 warnings generated. | |
... | |
powlo.c:101:15: warning: The result of the '<<' expression is undefined | |
for (i = (1 << (windowsize - 1)) - 1; i > 0; i--) | |
~~^~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
aorsmul.c:128:4: warning: Value stored to 'wsize' is never read | |
wsize = usize; | |
^ ~~~~~ | |
1 warning generated. | |
... | |
gcd.c:49:66: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((vsize) > ((g)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(g,vsize) : ((g)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | |
gcd.c:60:66: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((usize) > ((g)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(g,usize) : ((g)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | |
gcd.c:139:66: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((gsize) > ((g)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(g,gsize) : ((g)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | |
gcd.c:149:66: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((gsize) > ((g)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(g,gsize) : ((g)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | |
4 warnings generated. | |
... | |
gcd_ui.c:57:64: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((un) > ((w)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(w,un) : ((w)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~ ~~~ | |
1 warning generated. | |
... | |
inp_str.c:155:66: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((xsize) > ((x)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(x,xsize) : ((x)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | |
1 warning generated. | |
... | |
lcm.c:52:68: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((usize+1) > ((r)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(r,usize+1) : ((r)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | |
1 warning generated. | |
... | |
lcm_ui.c:57:64: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((usize+1) > ((r)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(r,usize+1) : ((r)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | |
1 warning generated. | |
... | |
In file included from mul_ui.c:23: | |
./mul_i.h:95:58: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] | |
((prod)->_mp_size) = ((sign_product < 0) ^ (small_mult < 0)) ? -size : size; | |
~~~~~~~~~~ ^ ~ | |
1 warning generated. | |
... | |
nextprime.c:114:7: warning: Value stored to 'difference' is never read | |
difference = 0; | |
^ ~ | |
1 warning generated. | |
... | |
jacobi.c:197:9: warning: Function call argument is an uninitialized value | |
mpn_jacobi_init (ap[0], blow, (result_bit1>>1) & 1)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
powm.c:267:59: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((rn) > ((r)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(r,rn) : ((r)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~ ~~~ | |
1 warning generated. | |
... | |
powm_sec.c:82:59: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((rn) > ((r)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(r,rn) : ((r)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~ ~~~ | |
1 warning generated. | |
... | |
powm_ui.c:260:63: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((xn) > ((r)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(r,xn) : ((r)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~ ~~~ | |
1 warning generated. | |
... | |
remove.c:80:7: warning: Value stored to 'pwr' is never read | |
pwr = 0; | |
^ ~ | |
1 warning generated. | |
... | |
root.c:77:2: warning: Assigned value is garbage or undefined | |
MPN_COPY (up, rootp, rootn); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../gmp-impl.h:1767:5: note: expanded from macro 'MPN_COPY' | |
MPN_COPY_INCR (d, s, n); \ | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
../gmp-impl.h:1694:6: note: expanded from macro 'MPN_COPY_INCR' | |
__x = *__src++; \ | |
^ ~~~~~~~~ | |
root.c:77:2: warning: Assigned value is garbage or undefined | |
MPN_COPY (up, rootp, rootn); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../gmp-impl.h:1767:5: note: expanded from macro 'MPN_COPY' | |
MPN_COPY_INCR (d, s, n); \ | |
^~~~~~~~~~~~~~~~~~~~~~~ | |
../gmp-impl.h:1700:7: note: expanded from macro 'MPN_COPY_INCR' | |
__x = *__src++; \ | |
^ ~~~~~~~~ | |
2 warnings generated. | |
... | |
set_str.c:126:62: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((xsize) > ((x)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(x,xsize) : ((x)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | |
1 warning generated. | |
... | |
rootrem.c:83:2: warning: Assigned value is garbage or undefined | |
MPN_COPY (up, rootp, rootn); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
tdiv_r_2exp.c:41:68: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((res_size) > ((res)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(res,res_size) : ((res)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | |
tdiv_r_2exp.c:50:68: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((res_size) > ((res)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(res,res_size) : ((res)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | |
tdiv_r_2exp.c:60:71: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((res_size) > ((res)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(res,res_size) : ((res)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~ | |
3 warnings generated. | |
... | |
sqrt.c:90:7: warning: Value stored to 'usize' is never read | |
usize = tsize; | |
^ ~~~~~ | |
1 warning generated. | |
... | |
set_str.c:226:7: warning: Value stored to 'c' is never read | |
c = (unsigned char) *++str; | |
^ ~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
mul_ui.c:163:319: warning: self-comparison always evaluates to false [-Wtautological-compare] | |
...{ __gmp_x = (rp)[__gmp_i]; __gmp_r = __gmp_x + 1; (rp)[__gmp_i] = __gmp_r; ++__gmp_i; if (!((__gmp_r) < (1))) { if ((rp) != (rp)) do { mp_size_t _... | |
^ | |
mul_ui.c:163:494: warning: self-comparison always evaluates to false [-Wtautological-compare] | |
...__gmp_j < (size); __gmp_j++) (rp)[__gmp_j] = (rp)[__gmp_j]; } while (0); (cbit) = 0; break; } } } else { if ((rp) != (rp)) do { mp_size_t __gmp_j... | |
2 warnings generated. | |
... | |
add.c:164:7: warning: Assigned value is garbage or undefined | |
MPN_COPY (rp, tp, rsize); | |
^~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
doscan.c:497:3: warning: Value stored to 'end_fmt' is never read | |
end_fmt = orig_fmt + orig_fmt_len; | |
^ ~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
randlc2x.c:108:310: warning: self-comparison always evaluates to false [-Wtautological-compare] | |
...= (tp)[__gmp_i]; } while ((((tp)[__gmp_i++] = (__gmp_x + 1) & ((~ ((mp_limb_t) (0))) >> 0)) == 0)); } } if ((tp) != (tp)) do { mp_size_t __gmp_j; ... | |
^ | |
1 warning generated. | |
... | |
In file included from isfuns.cc:23: | |
../gmp.h:2058:345: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] | |
...} __gmp_x = (__gmp_xp)[__gmp_i]; } while ((((__gmp_wp)[__gmp_i++] = (__gmp_x + 1) & ((~ (static_cast<mp_limb_t> (0))) >> 0)) == 0)); } } if ((__gm... | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ | |
../gmp.h:2058:345: note: remove extraneous parentheses around the comparison to silence this warning | |
...} __gmp_x = (__gmp_xp)[__gmp_i]; } while ((((__gmp_wp)[__gmp_i++] = (__gmp_x + 1) & ((~ (static_cast<mp_limb_t> (0))) >> 0)) == 0)); } } if ((__gm... | |
~ ^ ~ | |
../gmp.h:2058:345: note: use '=' to turn this equality comparison into an assignment | |
...__gmp_x = (__gmp_xp)[__gmp_i]; } while ((((__gmp_wp)[__gmp_i++] = (__gmp_x + 1) & ((~ (static_cast<mp_limb_t> (0))) >> 0)) == 0)); } } if ((__gmp_... | |
^~ | |
= | |
1 warning generated. | |
... | |
osdoprnti.cc:50:3: warning: Value stored to 'ret' is never read | |
ret = __gmp_doprnt_integer (&__gmp_asprintf_funs_noformat, &d, p, s); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
osmpf.cc:54:3: warning: Value stored to 'ret' is never read | |
ret = __gmp_doprnt_mpf (&__gmp_asprintf_funs_noformat, &d, ¶m, point, f); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
misc.c:188:61: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((size) > ((z)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(z,size) : ((z)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~ ~~~ | |
1 warning generated. | |
... | |
refmpn.c:859:39: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] | |
do { if (__builtin_expect ((!(carry >= 0 && carry <= (((mp_limb_t) 1L) << s))) != 0, 0)) ... | |
~~~~~ ^ ~ | |
refmpn.c:941:39: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] | |
do { if (__builtin_expect ((!(carry >= 0 && carry <= (((mp_limb_t) 1L) << s))) != 0, 0)) ... | |
~~~~~ ^ ~ | |
2 warnings generated. | |
... | |
t-gmpmax.c:64:50: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] | |
printf (" USHRT_MAX %hu 0x%hX\n", (32767 *2 +1), (32767 *2 +1)); | |
~~~ ^~~~~~~~~~~~~ | |
%d | |
t-gmpmax.c:64:65: warning: format specifies type 'unsigned short' but the argument has type 'int' [-Wformat] | |
printf (" USHRT_MAX %hu 0x%hX\n", (32767 *2 +1), (32767 *2 +1)); | |
~~~ ^~~~~~~~~~~~~ | |
%X | |
2 warnings generated. | |
... | |
logic.c:70:3: warning: Value stored to 'rands' is never read | |
rands = RANDS; | |
^ ~~~~~ | |
1 warning generated. | |
... | |
t-mulmid.c:81:11: warning: format specifies type 'int' but the argument has type 'mp_size_t' (aka 'long') [-Wformat] | |
test, an, bn, rn); | |
^~ | |
t-mulmid.c:81:15: warning: format specifies type 'int' but the argument has type 'mp_size_t' (aka 'long') [-Wformat] | |
test, an, bn, rn); | |
^~ | |
t-mulmid.c:81:19: warning: format specifies type 'int' but the argument has type 'mp_size_t' (aka 'long') [-Wformat] | |
test, an, bn, rn); | |
^~ | |
3 warnings generated. | |
... | |
t-hgcd_appr.c:528:7: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] | |
(int) abits - s * (64 - 0), (unsigned) margin); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
t-div.c:43:16: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] | |
printf (" " + (i == 0)); | |
~~~~^~~~~~~~~~ | |
t-div.c:43:16: note: use array indexing to silence this warning | |
printf (" " + (i == 0)); | |
^ | |
& [ ] | |
t-div.c:43:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] | |
printf (" " + (i == 0)); | |
^~~~~~~~~~~~~~ | |
t-div.c:51:16: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] | |
printf (" " + (i == 0)); | |
~~~~^~~~~~~~~~ | |
t-div.c:51:16: note: use array indexing to silence this warning | |
printf (" " + (i == 0)); | |
^ | |
& [ ] | |
t-div.c:51:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] | |
printf (" " + (i == 0)); | |
^~~~~~~~~~~~~~ | |
4 warnings generated. | |
... | |
t-bdiv.c:43:16: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] | |
printf (" " + (i == 0)); | |
~~~~^~~~~~~~~~ | |
t-bdiv.c:43:16: note: use array indexing to silence this warning | |
printf (" " + (i == 0)); | |
^ | |
& [ ] | |
t-bdiv.c:43:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] | |
printf (" " + (i == 0)); | |
^~~~~~~~~~~~~~ | |
t-bdiv.c:51:16: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] | |
printf (" " + (i == 0)); | |
~~~~^~~~~~~~~~ | |
t-bdiv.c:51:16: note: use array indexing to silence this warning | |
printf (" " + (i == 0)); | |
^ | |
& [ ] | |
t-bdiv.c:51:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] | |
printf (" " + (i == 0)); | |
^~~~~~~~~~~~~~ | |
t-bdiv.c:176:3: warning: Value stored to 'maxdn' is never read | |
maxdn = maxdbits / GMP_NUMB_BITS + 1; | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
5 warnings generated. | |
... | |
t-mul.c:173:62: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((wsize) > ((w)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(w,wsize) : ((w)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | |
1 warning generated. | |
... | |
t-get_d_2exp.c:180:7: warning: Value stored to 'bits' is never read | |
bits = mpz_sizeinbase (z, 2); | |
^ ~~~~~~~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
t-mfac_uiui.c:69:55: warning: data argument not used by format string [-Wformat-extra-args] | |
printf ("mpz_mfac_uiui(%lu,&i) wrong\n", n, (2*3*11)); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
t-mfac_uiui.c:78:55: warning: data argument not used by format string [-Wformat-extra-args] | |
printf ("mpz_mfac_uiui(%lu,&i) wrong\n", n, (5*13)); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
2 warnings generated. | |
... | |
reuse.c:612:2: warning: Value stored to 'r1' is never read | |
r1 = mpz_gcd_ui (ref1, in1, in2i); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
reuse.c:616:2: warning: Value stored to 'r2' is never read | |
r2 = mpz_gcd_ui (res1, res1, in2i); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
2 warnings generated. | |
... | |
io.c:73:7: warning: Value stored to 'size' is never read | |
size = mpz_get_ui (bs); | |
^ ~~~~~~~~~~~~~~~ | |
1 warning generated. | |
... | |
t-printf.c:453:63: warning: expression result unused [-Wunused-value] | |
(__builtin_expect (((nsize) > ((z)->_mp_alloc)) != 0, 0) ? (mp_ptr) __gmpz_realloc(z,nsize) : ((z)->_mp_d)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~ ~~~ | |
1 warning generated. | |
... | |
t-cast.cc:39:3: warning: Value stored to 'i' is never read | |
i = mpz_odd_p (z); | |
^ ~~~~~~~~~~~~~ | |
t-cast.cc:40:3: warning: Value stored to 'i' is never read | |
i = mpz_even_p (z); | |
^ ~~~~~~~~~~~~~~ | |
t-cast.cc:41:3: warning: Value stored to 'i' is never read | |
i = mpz_cmp_si (z, l); | |
^ ~~~~~~~~~~~~~~~~~ | |
t-cast.cc:42:3: warning: Value stored to 'i' is never read | |
i = mpz_cmp_ui (z, u); | |
^ ~~~~~~~~~~~~~~~~~ | |
4 warnings generated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment