Author: Remi Meier <[email protected]>
Branch: nogil-unsafe-2
Changeset: r90794:fdfdff0a82cc
Date: 2017-03-23 11:30 +0100
http://bitbucket.org/pypy/pypy/changeset/fdfdff0a82cc/

Log:    work around annoying GCC warning

diff --git a/rpython/translator/c/funcgen.py b/rpython/translator/c/funcgen.py
--- a/rpython/translator/c/funcgen.py
+++ b/rpython/translator/c/funcgen.py
@@ -814,7 +814,7 @@
                                        c_string_constant(op.args[1].value))
 
     def OP_DEBUG_ASSERT_NOT_NONE(self, op):
-        return 'RPyAssert(%s != NULL, "ll_assert_not_none() failed");' % (
+        return 'RPyAssert((void*)(%s) != NULL, "ll_assert_not_none() 
failed");' % (
                     self.expr(op.args[0]),)
 
     def OP_DEBUG_FATALERROR(self, op):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to