[pypy-commit] pypy stm-gc: Silence this warning, because we get infinitely many of them right

arigo noreply at buildbot.pypy.org
Sat Feb 11 17:15:54 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r52376:2cdaa145d8a6
Date: 2012-02-11 16:15 +0000
http://bitbucket.org/pypy/pypy/changeset/2cdaa145d8a6/

Log:	Silence this warning, because we get infinitely many of them right
	now.

diff --git a/pypy/translator/c/funcgen.py b/pypy/translator/c/funcgen.py
--- a/pypy/translator/c/funcgen.py
+++ b/pypy/translator/c/funcgen.py
@@ -685,10 +685,10 @@
     OP_CAST_OPAQUE_PTR = OP_CAST_POINTER
 
     def OP_CAST_PTR_TO_ADR(self, op):
-        if self.lltypemap(op.args[0]).TO._gckind == 'gc' and self._is_stm():
-            from pypy.translator.c.support import log
-            log.WARNING("cast_ptr_to_adr(gcref) might be a bad idea with STM:")
-            log.WARNING("  %r" % (self.graph,))
+        #if self.lltypemap(op.args[0]).TO._gckind == 'gc' and self._is_stm():
+        #    from pypy.translator.c.support import log
+        #    log.WARNING("cast_ptr_to_adr(gcref) might be a bad idea with STM:")
+        #    log.WARNING("  %r" % (self.graph,))
         return self.OP_CAST_POINTER(op)
 
     def OP_CAST_INT_TO_PTR(self, op):


More information about the pypy-commit mailing list