type casting simplification that seems to remove strict aliasing warnings in GCC...
authorStefan Behnel <scoder@users.berlios.de>
Thu, 12 Jun 2008 20:27:50 +0000 (22:27 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 12 Jun 2008 20:27:50 +0000 (22:27 +0200)
Cython/Compiler/ModuleNode.py

index 1bc6f3fe3bd956d6dac1ba6d06f71bd633c7a2e7..632a634d32b4e2221af84db5c89e5ceeac361d01 100644 (file)
@@ -1913,7 +1913,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
             for meth_entry in type.scope.cfunc_entries:
                 if meth_entry.func_cname:
                     code.putln(
-                        "*(void(**)(void))&%s.%s = (void(*)(void))%s;" % (
+                        "%s.%s = (void*)%s;" % (
                             type.vtable_cname,
                             meth_entry.cname,
                             meth_entry.func_cname))