Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7ef0926193d77605c1097e2d094464ea520ee1c1537985f7d3c4ef871f3c8f74
Ticket: afa3c10ddf69390d089d8b89c24a459081a957f3
Tcltest build compiler warning
User & Date: dgp on 2023-11-13 18:01:44
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    Building the Tcltest trunk:
    
    /home/dgp/fossil/tcl/generic/tclTest.c: In function ‘TestbytestringObjCmd’:
    /home/dgp/fossil/tcl/generic/tclTest.c:5795:5: warning: passing argument 3 of ‘tclStubsPtr->tcl_GetBytesFromObj’ from incompatible pointer type [enabled by default]
         p = (const char *)Tcl_GetBytesFromObj(interp, objv[1], &x.n);
         ^
    /home/dgp/fossil/tcl/generic/tclTest.c:5795:5: note: expected ‘Tcl_Size *’ but argument is of type ‘int *’
    
    
    Looking at the code, this might be intentional, and that might have value,
    but it also departs from the quality metric of aiming to have Tcl build
    free of compiler errors and warnings.
    
    Reported just so the issue is on the record.  I'll defer to those engaged
    in the work.
    
  5. is_private changed to: "0"
  6. login: "dgp"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "8e2300e85be5dd1445b9666eb9429055951e33be"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "None"
  14. title changed to: "Tcltest build compiler warning"
  15. type changed to: "Bug"