Title: gh-111178: Avoid calling functions from incompatible pointer types in _tkinter.c by chrstphrchvz · Pull Request #112893 · python/cpython · GitHub
Open Graph Title: gh-111178: Avoid calling functions from incompatible pointer types in _tkinter.c by chrstphrchvz · Pull Request #112893 · python/cpython
X Title: gh-111178: Avoid calling functions from incompatible pointer types in _tkinter.c by chrstphrchvz · Pull Request #112893 · python/cpython
Description: Potential compiler warnings eliminated: ./Modules/_tkinter.c:819:18: warning: cast from 'PyObject *(*)(PyTclObject *, void *)' (aka 'struct _object *(*)(PyTclObject *, void *)') to 'getter' (aka 'struct _object *(*)(struct _object *, void *)') converts to incompatible function type [-Wcast-function-type-strict] 819 | {"typename", (getter)get_typename, NULL, get_typename__doc__}, | ^~~~~~~~~~~~~~~~~~~~ ./Modules/_tkinter.c:820:16: warning: cast from 'PyObject *(*)(PyTclObject *, void *)' (aka 'struct _object *(*)(PyTclObject *, void *)') to 'getter' (aka 'struct _object *(*)(struct _object *, void *)') converts to incompatible function type [-Wcast-function-type-strict] 820 | {"string", (getter)PyTclObject_string, NULL, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/_tkinter.c:826:21: warning: cast from 'void (*)(PyTclObject *)' to 'destructor' (aka 'void (*)(struct _object *)') converts to incompatible function type [-Wcast-function-type-strict] 826 | {Py_tp_dealloc, (destructor)PyTclObject_dealloc}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/_tkinter.c:827:18: warning: cast from 'PyObject *(*)(PyTclObject *)' (aka 'struct _object *(*)(PyTclObject *)') to 'reprfunc' (aka 'struct _object *(*)(struct _object *)') converts to incompatible function type [-Wcast-function-type-strict] 827 | {Py_tp_repr, (reprfunc)PyTclObject_repr}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/_tkinter.c:828:17: warning: cast from 'PyObject *(*)(PyTclObject *)' (aka 'struct _object *(*)(PyTclObject *)') to 'reprfunc' (aka 'struct _object *(*)(struct _object *)') converts to incompatible function type [-Wcast-function-type-strict] 828 | {Py_tp_str, (reprfunc)PyTclObject_str}, | ^~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/_tkinter.c:1388:23: warning: cast from 'int (*)(Tkapp_CallEvent *, int)' (aka 'int (*)(struct Tkapp_CallEvent *, int)') to 'Tcl_EventProc *' (aka 'int (*)(struct Tcl_Event *, int)') converts to incompatible function type [-Wcast-function-type-strict] 1388 | ev->ev.proc = (Tcl_EventProc*)Tkapp_CallProc; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/_tkinter.c:1666:23: warning: cast from 'int (*)(VarEvent *, int)' (aka 'int (*)(struct VarEvent *, int)') to 'Tcl_EventProc *' (aka 'int (*)(struct Tcl_Event *, int)') converts to incompatible function type [-Wcast-function-type-strict] 1666 | ev->ev.proc = (Tcl_EventProc*)var_proc; | ^~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/_tkinter.c:2293:23: warning: cast from 'int (*)(CommandEvent *, int)' (aka 'int (*)(struct CommandEvent *, int)') to 'Tcl_EventProc *' (aka 'int (*)(struct Tcl_Event *, int)') converts to incompatible function type [-Wcast-function-type-strict] 2293 | ev->ev.proc = (Tcl_EventProc*)Tkapp_CommandProc; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Modules/_tkinter.c:2346:23: warning: cast from 'int (*)(CommandEvent *, int)' (aka 'int (*)(struct CommandEvent *, int)') to 'Tcl_EventProc *' (aka 'int (*)(struct Tcl_Event *, int)') converts to incompatible function type [-Wcast-function-type-strict] 2346 | ev->ev.proc = (Tcl_EventProc*)Tkapp_CommandProc; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Issue: gh-111178
Open Graph Description: Potential compiler warnings eliminated: ./Modules/_tkinter.c:819:18: warning: cast from 'PyObject *(*)(PyTclObject *, void *)' (aka 'struct _object *(*)(PyTclObject *, void *)') to ...
X Description: Potential compiler warnings eliminated: ./Modules/_tkinter.c:819:18: warning: cast from 'PyObject *(*)(PyTclObject *, void *)' (aka 'struct _object *(*)(PyTclObject *, void ...
Opengraph URL: https://github.com/python/cpython/pull/112893
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:dedbff0b-03d1-96e1-4073-74ee116d1edf |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 9492:189C33:964C63:C4AE4C:696AF2BA |
| html-safe-nonce | d4ada657beefce6dba9688eb8dedd09869ac2ff039222f147934111b2430f938 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDkyOjE4OUMzMzo5NjRDNjM6QzRBRTRDOjY5NkFGMkJBIiwidmlzaXRvcl9pZCI6Ijg3NDE3NzYxNTc0MjcwMzY4NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8193ba10506853ee53f1e2363433a2d1dc20d85fb6b9041566ca2fbad214b295 |
| hovercard-subject-tag | pull_request:1637104400 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/112893/checks |
| twitter:image | https://avatars.githubusercontent.com/u/7941193?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/7941193?s=400&v=4 |
| og:image:alt | Potential compiler warnings eliminated: ./Modules/_tkinter.c:819:18: warning: cast from 'PyObject *(*)(PyTclObject *, void *)' (aka 'struct _object *(*)(PyTclObject *, void *)') to ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width