Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2025-05-09
12:45 • Closed ticket [9dcdddeefe]: compiler warnings plus 6 other changes artifact: 4dd5e698c1 user: dgp
2025-05-08
15:19
Fix [9dcdddeefe]: compiler warnings. No need to put this in changelog, since it's introduced after 9... check-in: 0149387ab9 user: jan.nijtmans tags: core-9-0-branch
2025-05-07
13:26 • Ticket [9dcdddeefe] compiler warnings status still Open with 3 other changes artifact: 266fad00a4 user: jan.nijtmans
2025-05-06
16:44 • New ticket [9dcdddeefe]. artifact: 5804de3c3a user: dgp

compiler warnings

Closed / Fixed9dcdddeefe6d6646b76f93f16bd7737e3aa2a12cCreated 2 years agoUpdated 2 years ago
Descriptionplain2025-05-06 16:44:44
Checkin [3cc7e2aa7d] creates these compiler warnings:

In file included from /home/dgp/fossil/tcl9.0/generic/tclTomMath.h:47,
                 from /home/dgp/fossil/tcl9.0/generic/tclStrToD.c:17:
/home/dgp/fossil/tcl9.0/generic/tclStrToD.c: In function ‘MakeHighPrecisionDouble’:
/home/dgp/fossil/tcl9.0/generic/tclTomMathDecls.h:114:22: warning: ignoring return value of ‘TclBN_mp_init_copy’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  114 | #define mp_init_copy TclBN_mp_init_copy
/home/dgp/fossil/tcl9.0/generic/tclStrToD.c:1882:9: note: in expansion of macro ‘mp_init_copy’
 1882 |         mp_init_copy(&bntmp, significand);
      |         ^~~~~~~~~~~~
/home/dgp/fossil/tcl9.0/generic/tclTomMathDecls.h:105:18: warning: ignoring return value of ‘TclBN_mp_div_d’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  105 | #define mp_div_d TclBN_mp_div_d
/home/dgp/fossil/tcl9.0/generic/tclStrToD.c:1887:13: note: in expansion of macro ‘mp_div_d’
 1887 |             mp_div_d(&bntmp, (mp_digit) pow10_wide[n], &bntmp, NULL);
      |             ^~~~~~~~
/home/dgp/fossil/tcl9.0/generic/tclTomMathDecls.h:114:22: warning: ignoring return value of ‘TclBN_mp_init_copy’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  114 | #define mp_init_copy TclBN_mp_init_copy
/home/dgp/fossil/tcl9.0/generic/tclStrToD.c:1892:9: note: in expansion of macro ‘mp_init_copy’
 1892 |         mp_init_copy(&bntmp, significand);
      |         ^~~~~~~~~~~~
/home/dgp/fossil/tcl9.0/generic/tclTomMathDecls.h:124:18: warning: ignoring return value of ‘TclBN_mp_mul_d’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  124 | #define mp_mul_d TclBN_mp_mul_d
/home/dgp/fossil/tcl9.0/generic/tclStrToD.c:1897:13: note: in expansion of macro ‘mp_mul_d’
 1897 |             mp_mul_d(&bntmp, (mp_digit) pow10_wide[n], &bntmp);
      |             ^~~~~~~~
Referenced by1
  • 0149387ab9Fix [9dcdddeefe]: compiler warnings. No need to put this in changelog, since it's introduced after 9.0.1. check-in2025-05-08 15:19:32
jan.nijtmanswiki2025-05-07 13:26:42

Not only that, but testcases are failing on Windows with gcc. I have no idea why .....

dgpplain2025-05-09 12:45:10
I see this is fixed now.
Log in (anonymous is fine) to add a comment.