id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 1518,Warning from gcc in boost/intrusive/detail/utilities.hpp,Lars Hagström ,Ion Gaztañaga,"When compiling with -Wall and -O2 or -O3 I get the following warning: {{{ intrusive/detail/utilities.hpp: In function 'float boost::intrusive::detail::fast_log2(float)': intrusive/detail/utilities.hpp:501: warning: dereferencing type-punned pointer will break strict-aliasing rules }}} This is with boost intrusive and interprocess from revision 41303. Changing the first line of fast_log2 to {{{ boost::uint32_t * const exp_ptr = static_cast (static_cast(&val)); }}} Makes this warning go away. Although I'm not so sure about the beauty and efficiency of casting that way... ",Bugs,closed,To Be Determined,interprocess,Boost 1.34.1,Cosmetic,fixed,,