Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 88a791ff6681a9804bd90c04f4ac6a92199a5c44863f231243f6874781ee99fc
Ticket: 18f2432b0db2bc0844a96f1cda544bea496323f1
Tcl_FSSplitPath compiler warning about macros
User & Date: jan.nijtmans on 2023-11-08 22:46:26
Changes

  1. assignee changed to: "jan.nijtmans"
  2. closedate changed to: "2460257.44891824"
  3. closer changed to: "jan.nijtmans"
  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. icomment:
    Thanks for the report!. Fixed[ba07d0573a|here]. No further comment :-)
    
  6. login: "jan.nijtmans"
  7. mimetype: "text/x-fossil-wiki"
  8. resolution changed to: "Fixed"
  9. status changed to: "Closed"