Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5804de3c3a93acf23d510d9420dd22dff2a5d2114f779b604a3d470423e6f47f
Ticket: 9dcdddeefe6d6646b76f93f16bd7737e3aa2a12c
compiler warnings
User & Date: dgp on 2025-05-06 16:44:44
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    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);
          |             ^~~~~~~~
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "8e2300e85be5dd1445b9666eb9429055951e33be"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "dgp"
  14. subsystem changed to: "48. Number Handling"
  15. title changed to: "compiler warnings"
  16. type changed to: "Bug"