From c729b8e92f044688e1b9d1cb24541c6f3d297415 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 6 Oct 2011 02:36:59 +0200 Subject: [PATCH] Fix a compiler warning: don't define unicode_is_singleton() in release mode --- Objects/unicodeobject.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 234bd01b769..21cafb32515 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,