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

SourceForge.net noreply at sourceforge.net
Thu Apr 19 07:26:54 CEST 2007


Patches item #1703268, was opened at 2007-04-18 14:37
Message generated for change (Comment added) made by nnorwitz
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: Closed
>Resolution: Fixed
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.

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

>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-04-18 22:26

Message:
Logged In: YES 
user_id=33168
Originator: NO

Brett just checked in 54873 to fix this problem.  Thanks for the patch.

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

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