diff Objects/stringlib/find.h @ 48826:bce03f87f65d legacy-trunk

Silenced compiler warning Objects/stringlib/find.h:97: warning: 'stringlib_contains_obj' defined but not used Reviewed by Benjamin Peterson
author Christian Heimes <christian@cheimes.de>
date Fri, 22 Aug 2008 19:47:25 +0000
parents 1fb353776dfb
children 304bea8731d2
line wrap: on
line diff
--- a/Objects/stringlib/find.h	Fri Aug 22 19:34:15 2008 +0000
+++ b/Objects/stringlib/find.h	Fri Aug 22 19:47:25 2008 +0000
@@ -90,7 +90,7 @@
     return stringlib_rfind(str + start, end - start, sub, sub_len, start);
 }
 
-#ifdef STRINGLIB_STR
+#if defined(STRINGLIB_STR) && !defined(FROM_BYTEARRAY)
 
 Py_LOCAL_INLINE(int)
 stringlib_contains_obj(PyObject* str, PyObject* sub)