Cast to void* before casting to Node** to make the compiler do no strict-aliasing...
authorMart Raudsepp <leio@gentoo.org>
Tue, 14 Feb 2006 09:21:37 +0000 (09:21 +0000)
committerMart Raudsepp <leio@gentoo.org>
Tue, 14 Feb 2006 09:21:37 +0000 (09:21 +0000)
commit9a71e770e1dd7049e762d95e3b4c8876d1258a0c
tree073c6cd9891a4588778d1ee46ad6dc81f65611a7
parentf2b8291a281cb3a30bb317ab0ba9a883d8fd39ec
Cast to void* before casting to Node** to make the compiler do no strict-aliasing assumptions, and suppress a warning
if -fstrict-aliasing (enabled with -O2, -O3 and -Os unless forced off as is planned for the time being) is used.
See http://article.gmane.org/gmane.comp.lib.wxwidgets.devel/70262 for details.
Also return NULL instead of 0 in the same GetNodePtr, as the return type is a pointer, not integer.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/hashmap.h