Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r49988:12a0a0c0eb4a
Date: 2011-11-29 22:32 +0100
http://bitbucket.org/pypy/pypy/changeset/12a0a0c0eb4a/

Log:    Turn off reporting const-fold errors as WARNINGs. This gives quite
        a bunch of warnings in any C translation, and I've never had any use
        of them over the years, so well.

diff --git a/pypy/translator/backendopt/constfold.py 
b/pypy/translator/backendopt/constfold.py
--- a/pypy/translator/backendopt/constfold.py
+++ b/pypy/translator/backendopt/constfold.py
@@ -37,8 +37,9 @@
                 except (KeyboardInterrupt, SystemExit):
                     raise
                 except Exception, e:
-                    log.WARNING('constant-folding %r:' % (spaceop,))
-                    log.WARNING('  %s: %s' % (e.__class__.__name__, e))
+                    pass   # turn off reporting these as warnings: useless
+                    #log.WARNING('constant-folding %r:' % (spaceop,))
+                    #log.WARNING('  %s: %s' % (e.__class__.__name__, e))
                 else:
                     # success in folding this space operation
                     if spaceop.opname in fixup_op_result:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to