Tcl_FSSplitPath compiler warning about macros
Closed / Fixed18f2432b0db2bc0844a96f1cda544bea496323f1Created 3 years agoUpdated 3 years ago
Descriptionplain2023-11-08 21:48:22
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);
jan.nijtmanswiki2023-11-08 22:46:26
Thanks for the report!. Fixed[here]. No further comment :-)
Log in (anonymous is fine) to add a comment.