summaryrefslogtreecommitdiff
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-06 02:36:59 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-06 02:36:59 +0200
commitc729b8e92f044688e1b9d1cb24541c6f3d297415 (patch)
tree9610ff85679f4590b1f4e2cb33e9d7bfd1bb0acc /Objects/unicodeobject.c
parentb62a7b268af8d58e5565b44a38c923917d7b62fe (diff)
downloadcpython-git-c729b8e92f044688e1b9d1cb24541c6f3d297415.tar.gz
Fix a compiler warning: don't define unicode_is_singleton() in release mode
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 234bd01b76..21cafb3251 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,