Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r2223:d0e1c599a102
Date: 2015-07-09 19:48 +0200
http://bitbucket.org/cffi/cffi/changeset/d0e1c599a102/

Log:    Silence a gcc warning

diff --git a/c/ffi_obj.c b/c/ffi_obj.c
--- a/c/ffi_obj.c
+++ b/c/ffi_obj.c
@@ -397,8 +397,9 @@
         PyTuple_SET_ITEM(allocator, 2, my_free);
     }
     if (!should_clear_after_alloc) {
-        Py_INCREF(Py_True);
-        PyTuple_SET_ITEM(allocator, 3, Py_True);  /* dont_clear_after_alloc */
+        PyObject *my_true = Py_True;
+        Py_INCREF(my_true);
+        PyTuple_SET_ITEM(allocator, 3, my_true);  /* dont_clear_after_alloc */
     }
 
     {
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to