Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2020-01-16
14:05 • Closed ticket [435acb846c]: libtommath - missing declarations plus 6 other c... artifact: 3762c4578a user: jan.nijtmans
2019-12-13
20:35
Fix [435acb846c]: libtommath - missing declarations check-in: 3ac9bde284 user: jan.nijtmans tags: trunk
16:00 • Ticket [435acb846c] libtommath - missing declarations status still Open with... artifact: 48ff218d69 user: dgp
15:59 • New ticket [435acb846c]. artifact: 0787358b53 user: dgp

libtommath - missing declarations

Closed / Fixed435acb846cbd06ff9147f1fe28ba5ef4871b0e51Created 7 years agoUpdated 7 years ago
Descriptionplain2019-12-13 15:59:53
When building the trunk, several warnings about "implicit declaration" appear.

.../tclStrToD.c
/home/dgp/fossil/tcl/generic/tclStrToD.c: In function ‘TclInitDoubleConversion’:
/home/dgp/fossil/tcl/generic/tclStrToD.c:4322:2: warning: implicit declaration of function ‘TclBN_mp_sqr’ [-Wimplicit-function-declaration]
  mp_sqr(pow5+i, pow5+i+1);

.../bn_mp_div_d.c
/home/dgp/fossil/tcl/libtommath/bn_mp_div_d.c: In function ‘TclBN_mp_div_d’:
/home/dgp/fossil/tcl/libtommath/bn_mp_div_d.c:48:7: warning: implicit declaration of function ‘TclBN_mp_div_3’ [-Wimplicit-function-declaration]
       return mp_div_3(a, c, d);


.../bn_mp_expt_u32.c
/home/dgp/fossil/tcl/libtommath/bn_mp_expt_u32.c: In function ‘TclBN_mp_expt_u32’:
/home/dgp/fossil/tcl/libtommath/bn_mp_expt_u32.c:30:10: warning: implicit declaration of function ‘TclBN_mp_sqr’ [-Wimplicit-function-declaration]
          if ((err = mp_sqr(&g, &g)) != MP_OKAY) {

.../bn_s_mp_karatsuba_sqr.c:65:4: warning: implicit declaration of function ‘TclBN_mp_sqr’ [-Wimplicit-function-declaration]
    if (mp_sqr(&x0, &x0x0) != MP_OKAY)


.../bn_s_mp_toom_mul.c
/home/dgp/fossil/tcl/libtommath/bn_s_mp_toom_mul.c: In function ‘TclBN_mp_toom_mul’:
/home/dgp/fossil/tcl/libtommath/bn_s_mp_toom_mul.c:149:4: warning: implicit declaration of function ‘TclBN_mp_div_3’ [-Wimplicit-function-declaration]
    if ((err = mp_div_3(&S2, &S2, NULL)) != MP_OKAY)               goto LBL_ERR;

.../bn_s_mp_toom_sqr.c:64:4: warning: implicit declaration of function ‘TclBN_mp_sqr’ [-Wimplicit-function-declaration]
    if ((err = mp_sqr(&a0, &S0)) != MP_OKAY)                       goto LBL_ERR;
Referenced by1
dgp Ticket [435acb846c]: 4 changes [History diff]2019-12-13 16:00:15
jan.nijtmansplain2020-01-16 14:05:18
Already fixed (for some time now)
Log in (anonymous is fine) to add a comment.