diff options
author | Peter Wu <lekensteyn@gmail.com> | 2011-12-09 10:34:07 +0000 |
---|---|---|
committer | Peter Wu <lekensteyn@gmail.com> | 2011-12-09 10:34:07 +0000 |
commit | 284c27d4e7b1f6650217522d59c3c7a9ee963f5f (patch) | |
tree | 9971599545659de4261d2fdea59a02aecae96344 /pp2cc.py | |
parent | 8391b13848fc9dea3548cc1d78965792ad600324 (diff) | |
download | pp2cc-284c27d4e7b1f6650217522d59c3c7a9ee963f5f.tar.gz |
Hide cast warnings
Diffstat (limited to 'pp2cc.py')
-rwxr-xr-x | pp2cc.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -785,7 +785,7 @@ class Parse(object): lines.append(self.asm.binary_op("LOAD", "R0", "R0")) return lines def parseCast(self, linked_node): - self.logger.warning("Found a type cast, but these are unsupported.", linked_node=linked_node) + #self.logger.warning("Found a type cast, but these are unsupported.", linked_node=linked_node) return self.parseExpression(linked_node.node.expr, linked_node) def parseDoWhile(self, linked_node): node = linked_node.node @@ -1308,8 +1308,8 @@ class Parse(object): raise RuntimeError("Unsupported constant type '{}'".format(node.type)) value = self.convertStrToInteger(self.convertInteger(node.value)) elif linked_node.type == "Cast": - self.logger.warning("Found a type cast, but these are unsupported", - linked_node=linked_node) + #self.logger.warning("Found a type cast, but these are unsupported", + # linked_node=linked_node) value = self.determineConstValue(LinkedNode(node.expr, linked_node)) elif linked_node.type == "UnaryOp": op = node.op |