From: Stefan Behnel Date: Thu, 12 Jun 2008 20:27:50 +0000 (+0200) Subject: type casting simplification that seems to remove strict aliasing warnings in GCC... X-Git-Tag: 0.9.8.1~137^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4401a4b8bbf1410ead4bff3ff0524a67021210da;p=cython.git type casting simplification that seems to remove strict aliasing warnings in GCC 3.4 - 4.2 --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 1bc6f3fe..632a634d 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -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))