Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c6ca714c2a80d3c0b91615111f41c4a900d11caf232fd681c082d30c4c0b4d1f
Ticket: 18f2432b0db2bc0844a96f1cda544bea496323f1
Tcl_FSSplitPath compiler warning about macros
User & Date: dgp on 2023-11-08 21:48:22
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    
    Another entry in the "compatibility macros do not like NULL" chapter:
    
    
    
    In file included from /home/dgp/fossil/tcl/generic/tcl.h:2431:0,
                     from /home/dgp/fossil/tcl/generic/tclPort.h:25,
                     from /home/dgp/fossil/tcl/generic/tclInt.h:63,
                     from /home/dgp/fossil/tcl/generic/tclCmdAH.c:14:
    /home/dgp/fossil/tcl/generic/tclCmdAH.c: In function ‘PathSplitCmd’:
    /home/dgp/fossil/tcl/generic/tclDecls.h:4257:50: warning: invalid application of ‘sizeof’ to a void type [-Wpointer-arith]
     # define Tcl_FSSplitPath(pathPtr, lenPtr) (sizeof(*(lenPtr)) == sizeof(int) ? \
                                                      ^
    /home/dgp/fossil/tcl/generic/tclCmdAH.c:2077:11: note: in expansion of macro ‘Tcl_FSSplitPath’
         res = Tcl_FSSplitPath(objv[1], NULL);
    
  5. foundin changed to: "trunk"
  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: "None"
  15. title changed to: "Tcl_FSSplitPath compiler warning about macros"
  16. type changed to: "Bug"