This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: silenced a compiler warning
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: belopolsky, nnorwitz
Priority: normal Keywords: patch

Created on 2007-04-18 21:37 by belopolsky, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
frameobject.patch belopolsky, 2007-04-18 21:37 diff against revision 54869
Messages (2)
msg52446 - (view) Author: Alexander Belopolsky (belopolsky) * (Python committer) Date: 2007-04-18 21:37
Gcc complains as follows:

Objects/frameobject.c:140: warning: passing arg 2 of `PyString_AsStringAndSize' from incompatible pointer type

because code is declared as unsigned char* and PyString_AsStringAndSize expects an address of a plain char*.

Attached patch adds an explicit cast to silence the warning.
msg52447 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2007-04-19 05:26
Brett just checked in 54873 to fix this problem.  Thanks for the patch.
History
Date User Action Args
2022-04-11 14:56:23adminsetgithub: 44862
2007-04-18 21:37:03belopolskycreate