Skip to content

Commit

Permalink
Fix compiler warning when using Tcl 9.0 headers:
Browse files Browse the repository at this point in the history
generic/tkImage.c:378:18: warning: cast between incompatible function types from ‘int (*)(Tcl_Interp *, const char *, Tcl_Size,  Tcl_Obj * const*, const Tk_ImageType *, struct Tk_ImageModel_ *, void **)’ {aka ‘int (*)(Tcl_Interp *, const char *, long int,  Tcl_Obj * const*, const Tk_ImageType *, struct Tk_ImageModel_ *, void **)’} to ‘int (*)(Tcl_Interp *, char *, int,  char **, Tk_ImageType *, struct Tk_ImageModel_ *, void **)’ [-Wcast-function-type]
  • Loading branch information
jan.nijtmans committed Nov 8, 2023
1 parent dc39c82 commit ca1903b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic/tkImage.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ Tk_ImageObjCmd(
}
Tcl_Preserve(modelPtr);
if (oldimage) {
typedef int (OldCreateProc)(Tcl_Interp*, char*, int, char**,
typedef int (OldCreateProc)(Tcl_Interp*, char*, Tcl_Size, char**,
Tk_ImageType*, Tk_ImageModel, ClientData*);
i = ((OldCreateProc*)typePtr->createProc)(interp,
(char*)name, objc, (char**)args, typePtr,
Expand Down

0 comments on commit ca1903b

Please sign in to comment.