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: warnings in unicodeobject.c
Type: behavior Stage: needs patch
Components: Interpreter Core Versions: Python 3.1, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, pitrou, vstinner
Priority: normal Keywords: patch

Created on 2009-05-04 21:19 by pitrou, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
unicode_warning.patch vstinner, 2009-05-04 22:33
Messages (3)
msg87180 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2009-05-04 21:19
This happens in trunk and py3k:

gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE -o
Objects/unicodeobject.o Objects/unicodeobject.c
Objects/unicodeobject.c: In function ‘PyUnicodeUCS2_FromFormatV’:
Objects/unicodeobject.c:795: attention : pointer targets in passing
argument 1 of ‘strlen’ differ in signedness
Objects/unicodeobject.c:795: attention : pointer targets in passing
argument 1 of ‘PyUnicodeUCS2_DecodeUTF8’ differ in signedness
msg87189 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2009-05-04 22:33
Use "const char*" fixes this issue.

Note: the warning was introduced by r72260 (issue #5108).
msg87236 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-05-05 09:19
Fixed in r72326.
History
Date User Action Args
2022-04-11 14:56:48adminsetgithub: 50179
2009-05-05 09:19:55georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg87236

resolution: fixed
2009-05-04 22:33:35vstinnersetfiles: + unicode_warning.patch

nosy: + vstinner
messages: + msg87189

keywords: + patch
2009-05-04 21:19:43pitroucreate