[New-bugs-announce] [issue7463] PyDateTime_IMPORT() causes compiler warnings
Murray Cumming
report at bugs.python.org
Wed Dec 9 11:01:51 CET 2009
New submission from Murray Cumming <murrayc at murrayc.com>:
At least in Python 2.5 and 2.6 (I haven't checked newer versions), the
PyDateTime_IMPORT() macro passes string literals to a function that
takes non-const char* parameters:
#define PyDateTime_IMPORT \
PyDateTimeAPI = (PyDateTime_CAPI*) PyCObject_Import("datetime", \
"datetime_CAPI")
This makes it impossible to build code with warnings as errors, when
using that macro.
----------
components: None
messages: 96166
nosy: murrayc
severity: normal
status: open
title: PyDateTime_IMPORT() causes compiler warnings
type: compile error
versions: Python 2.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7463>
_______________________________________
More information about the New-bugs-announce
mailing list