warning: dereferencing type-punned pointer will break strict-aliasing rules(轉)

warning: dereferencing type-punned pointer will break strict-aliasing rules express   在 gcc 2.x 下編譯沒有任何 warning 信息的代碼換到 gcc 3.x 版本下以後出現了相似的 warning 。緣由是 gcc 3 引入了 strict aliasing 架構,當編譯時使用了 -fstrict-a
相關文章
相關標籤/搜索