Menu

#5 warning: dereferencing type-punned pointer will break strict

open
nobody
None
5
2010-10-06
2010-10-06
Phil
No

With certain versions of GCC the compiler issues the following warning... "warning: dereferencing type-punned pointer will break strict-aliasing rules" This has to do with optimizations that the compiler might make that will be messed up with the way I have been dereferencing and casting pointers. I need to go through and fix all of these or turn off strict-aliasing.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB