Avoid g++ warnings about breaking strict aliasing rules in wxTreeCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 2 Jul 2011 10:29:07 +0000 (10:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 2 Jul 2011 10:29:07 +0000 (10:29 +0000)
commit749f13d4a2d25b3ab4509131b425d02fb2327569
treeae82aad0818f8991e7b407152949508687189d00
parent3ca5da93574aa49577e7938bda7127d86947aaed
Avoid g++ warnings about breaking strict aliasing rules in wxTreeCtrl.

The standard TreeView_GetItemRect() macro resulted in warnings about breaking
strict aliasing rules as it passed a variable of one type via a pointer to
another one. Fix this by using a union and our own custom macro instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/treectrl.cpp