New submission from Murray Cumming <[email protected]>:
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 <[email protected]>
<http://bugs.python.org/issue7463>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com