e563066c76
While wxWidgets itself is compiled with -fno-strict-aliasing, the user code including wx headers can be compiled without it and, worse, even with -Wstrict-aliasing=2 which would give tons of warnings (two for each instantiation of the template class) of possibly breaking strict aliasing rule. Fix this by using a union to cast between two pointers of different types instead of using a reinterpret cast. |
||
---|---|---|
.. | ||
msvc/wx | ||
wx |