From 284c27d4e7b1f6650217522d59c3c7a9ee963f5f Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Fri, 9 Dec 2011 10:34:07 +0000 Subject: Hide cast warnings --- pp2cc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pp2cc.py') diff --git a/pp2cc.py b/pp2cc.py index 8d26f78..7249ca3 100755 --- a/pp2cc.py +++ b/pp2cc.py @@ -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 -- cgit v1.2.1