Commits

Armin Rigo committed 12a0a0c

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.

Comments (0)

Files changed (1)

pypy/translator/backendopt/constfold.py

                 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: