[Python-checkins] r82703 - python/branches/import_unicode/Python/import.c
victor.stinner
python-checkins at python.org
Fri Jul 9 01:33:09 CEST 2010
Author: victor.stinner
Date: Fri Jul 9 01:33:09 2010
New Revision: 82703
Log:
fix compiler warning (unused variable)
Modified:
python/branches/import_unicode/Python/import.c
Modified: python/branches/import_unicode/Python/import.c
==============================================================================
--- python/branches/import_unicode/Python/import.c (original)
+++ python/branches/import_unicode/Python/import.c Fri Jul 9 01:33:09 2010
@@ -1995,9 +1995,12 @@
static int
case_ok(PyObject *bufobj, Py_ssize_t lendelta, Py_ssize_t namelen, char *name)
{
+#if defined(MS_WINDOWS) || defined(DJGPP) || (defined(__MACH__) && defined(__APPLE__) \
+ || defined(__CYGWIN__)) && defined(HAVE_DIRENT_H) || defined(PYOS_OS2)
/* FIXME: don't use _PyUnicode_AsString */
char *buf = _PyUnicode_AsString(bufobj);
Py_ssize_t len = strlen(buf) - lendelta;
+#endif
/* Pick a platform-specific implementation; the sequence of #if's here should
* match the sequence just above.
More information about the Python-checkins
mailing list