[Patches] [ python-Patches-1703268 ] silenced a compiler warning

SourceForge.net noreply at sourceforge.net
Wed Apr 18 23:37:03 CEST 2007


Patches item #1703268, was opened at 2007-04-18 17:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1703268&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alexander Belopolsky (belopolsky)
Assigned to: Nobody/Anonymous (nobody)
Summary: silenced a compiler warning

Initial Comment:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1703268&group_id=5470


More information about the Patches mailing list