Fix a compiler warning: don't define unicode_is_singleton() in release mode

This commit is contained in:
Victor Stinner 2011-10-06 02:36:59 +02:00
parent b62a7b268a
commit c729b8e92f
1 changed files with 2 additions and 0 deletions

View File

@ -243,7 +243,9 @@ static void copy_characters(
PyObject *to, Py_ssize_t to_start, PyObject *to, Py_ssize_t to_start,
PyObject *from, Py_ssize_t from_start, PyObject *from, Py_ssize_t from_start,
Py_ssize_t how_many); Py_ssize_t how_many);
#ifdef Py_DEBUG
static int unicode_is_singleton(PyObject *unicode); static int unicode_is_singleton(PyObject *unicode);
#endif
static PyObject * static PyObject *
unicode_encode_call_errorhandler(const char *errors, unicode_encode_call_errorhandler(const char *errors,