From: Victor Stinner Date: Thu, 6 Oct 2011 00:36:59 +0000 (+0200) Subject: Fix a compiler warning: don't define unicode_is_singleton() in release mode X-Git-Tag: v3.3.0a1~1295 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c729b8e92f044688e1b9d1cb24541c6f3d297415;p=thirdparty%2FPython%2Fcpython.git Fix a compiler warning: don't define unicode_is_singleton() in release mode --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 234bd01b769b..21cafb325151 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -243,7 +243,9 @@ static void copy_characters( PyObject *to, Py_ssize_t to_start, PyObject *from, Py_ssize_t from_start, Py_ssize_t how_many); +#ifdef Py_DEBUG static int unicode_is_singleton(PyObject *unicode); +#endif static PyObject * unicode_encode_call_errorhandler(const char *errors,