[pypy-commit] pypy default: silence a warning

arigo pypy.commits at gmail.com
Sun Feb 5 11:22:25 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r89941:587b40019180
Date: 2017-02-05 17:21 +0100
http://bitbucket.org/pypy/pypy/changeset/587b40019180/

Log:	silence a warning

diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext/api.py
+++ b/pypy/module/cpyext/api.py
@@ -1069,7 +1069,8 @@
     struct PyPyAPI {
     %(members)s
     } _pypyAPI;
-    RPY_EXTERN struct PyPyAPI* pypyAPI = &_pypyAPI;
+    RPY_EXTERN struct PyPyAPI* pypyAPI;
+    struct PyPyAPI* pypyAPI = &_pypyAPI;
     """ % dict(members=structmembers)
 
     global_objects = []


More information about the pypy-commit mailing list