[pypy-commit] pypy default: Add declarations to some C functions to fix remaining compilation warnings

amauryfa noreply at buildbot.pypy.org
Wed Jun 20 21:17:22 CEST 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r55731:df1a40c0b049
Date: 2012-06-20 21:05 +0200
http://bitbucket.org/pypy/pypy/changeset/df1a40c0b049/

Log:	Add declarations to some C functions to fix remaining compilation
	warnings

diff --git a/pypy/module/_ssl/thread_lock.py b/pypy/module/_ssl/thread_lock.py
--- a/pypy/module/_ssl/thread_lock.py
+++ b/pypy/module/_ssl/thread_lock.py
@@ -65,6 +65,8 @@
 
 eci = ExternalCompilationInfo(
     separate_module_sources=[separate_module_source],
+    post_include_bits=[
+        "int _PyPy_SSL_SetupThreads(void);"],
     export_symbols=['_PyPy_SSL_SetupThreads'],
 )
 
diff --git a/pypy/module/cpyext/include/pycapsule.h b/pypy/module/cpyext/include/pycapsule.h
--- a/pypy/module/cpyext/include/pycapsule.h
+++ b/pypy/module/cpyext/include/pycapsule.h
@@ -50,6 +50,8 @@
 
 PyAPI_FUNC(void *) PyCapsule_Import(const char *name, int no_block);
 
+void init_capsule(void);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/pypy/module/cpyext/include/pycobject.h b/pypy/module/cpyext/include/pycobject.h
--- a/pypy/module/cpyext/include/pycobject.h
+++ b/pypy/module/cpyext/include/pycobject.h
@@ -47,6 +47,8 @@
     void (*destructor)(void *);
 } PyCObject;
 #endif
+
+void init_pycobject(void);
  
 #ifdef __cplusplus
 }


More information about the pypy-commit mailing list