[pypy-commit] pypy nogil-unsafe-2: work around annoying GCC warning
Raemi
pypy.commits at gmail.com
Thu Mar 23 06:31:14 EDT 2017
Author: Remi Meier <remi.meier at gmail.com>
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):
More information about the pypy-commit
mailing list