-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-112672: use Tcl_Size
to avoid incompatible pointer type warnings
#112681
Conversation
chrstphrchvz
commented
Dec 4, 2023
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: Tkinter: incompatible pointer types warnings when built with Tcl 9 #112672
Modules/_tkinter.c
Outdated
void | ||
Tkapp_CallDeallocArgs(Tcl_Obj** objv, Tcl_Obj** objStore, int objc) | ||
Tkapp_CallDeallocArgs(Tcl_Obj** objv, Tcl_Obj** objStore, Tcl_Size objc) | ||
{ | ||
int i; | ||
Tcl_Size i; | ||
for (i = 0; i < objc; i++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Watch out for conflict with #112679. I wonder if this function should iterate backwards over objv[]
since it is deallocating.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The warnings are gone (and they are not innocent warnings, they are errors). What is left to do here to make it a non-draft?
* Add declaration of Tcl_AppInit(), missing in Tcl 9.0. * Use Tcl_Size instead of int where needed. Co-authored-by: Serhiy Storchaka <[email protected]>
Thanks @chrstphrchvz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
* Add declaration of Tcl_AppInit(), missing in Tcl 9.0. * Use Tcl_Size instead of int where needed. (cherry picked from commit e079935) Co-authored-by: Christopher Chavez <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
GH-120208 is a backport of this pull request to the 3.13 branch. |
Thanks @chrstphrchvz for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
* Add declaration of Tcl_AppInit(), missing in Tcl 9.0. * Use Tcl_Size instead of int where needed. (cherry picked from commit e079935) Co-authored-by: Christopher Chavez <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
GH-120209 is a backport of this pull request to the 3.12 branch. |
…0208) * Add declaration of Tcl_AppInit(), missing in Tcl 9.0. * Use Tcl_Size instead of int where needed. (cherry picked from commit e079935) Co-authored-by: Christopher Chavez <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
…0209) * Add declaration of Tcl_AppInit(), missing in Tcl 9.0. * Use Tcl_Size instead of int where needed. (cherry picked from commit e079935) Co-authored-by: Christopher Chavez <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
* Add declaration of Tcl_AppInit(), missing in Tcl 9.0. * Use Tcl_Size instead of int where needed. Co-authored-by: Serhiy Storchaka <[email protected]>
* Add declaration of Tcl_AppInit(), missing in Tcl 9.0. * Use Tcl_Size instead of int where needed. Co-authored-by: Serhiy Storchaka <[email protected]>