summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2010-05-02 17:19:14 +0000
committerTres Seaver <tseaver@palladion.com>2010-05-02 17:19:14 +0000
commit72ff096845c4e512905fea8b41daaeff8aca0cb8 (patch)
treefd05eaa61f7808b3a38e2df14fedb62e86944ae4
parentfabe03b699edb5291bc2dcc33d0fc90d41f79a3a (diff)
downloadzope-interface-72ff096845c4e512905fea8b41daaeff8aca0cb8.tar.gz
Fix compiler warnings under GCC 4.3.3.
-rw-r--r--src/zope/interface/_zope_interface_coptimizations.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zope/interface/_zope_interface_coptimizations.c b/src/zope/interface/_zope_interface_coptimizations.c
index 65d6ff1..dd24c9c 100644
--- a/src/zope/interface/_zope_interface_coptimizations.c
+++ b/src/zope/interface/_zope_interface_coptimizations.c
@@ -1564,10 +1564,10 @@ static struct PyMethodDef m_methods[] = {
{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 @@ init(void)
#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