[Checkins] SVN: zope.interface/trunk/src/zope/interface/_zope_interface_coptimizations.c Fix compiler warnings under GCC 4.3.3.
Tres Seaver
tseaver at palladion.com
Sun May 2 13:19:14 EDT 2010
Log message for revision 111871:
Fix compiler warnings under GCC 4.3.3.
Changed:
U zope.interface/trunk/src/zope/interface/_zope_interface_coptimizations.c
-=-
Modified: zope.interface/trunk/src/zope/interface/_zope_interface_coptimizations.c
===================================================================
--- zope.interface/trunk/src/zope/interface/_zope_interface_coptimizations.c 2010-05-02 16:59:52 UTC (rev 111870)
+++ zope.interface/trunk/src/zope/interface/_zope_interface_coptimizations.c 2010-05-02 17:19:14 UTC (rev 111871)
@@ -1564,10 +1564,10 @@
{NULL, (PyCFunction)NULL, 0, NULL} /* sentinel */
};
+#if PY_MAJOR_VERSION >= 3
static char module_doc[] = "C optimizations for zope.interface\n\n"
"$Id$";
-#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef _zic_module = {
PyModuleDef_HEAD_INIT,
"_zope_interface_coptimizations",
@@ -1591,7 +1591,7 @@
#if PY_MAJOR_VERSION < 3
#define DEFINE_STRING(S) \
- if(! (str ## S = PyString_FromString(# S))) return
+ if(! (str ## S = PyString_FromString(# S))) return NULL
#else
#define DEFINE_STRING(S) \
if(! (str ## S = PyUnicode_FromString(# S))) return NULL
More information about the checkins
mailing list