diff Objects/unicodeobject.c @ 72717:0535bf5e1ea6

Fix a compiler warning: don't define unicode_is_singleton() in release mode
author Victor Stinner <victor.stinner@haypocalc.com>
date Thu, 06 Oct 2011 02:36:59 +0200
parents 6f03716079a9
children 357750802e86
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Thu Oct 06 02:34:51 2011 +0200
+++ b/Objects/unicodeobject.c	Thu Oct 06 02:36:59 2011 +0200
@@ -243,7 +243,9 @@
     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,