------- Additional Comments From fn_x at hotmail dot com 2005-07-28 00:00 ------- The bug this is marked a duplicate of is about -Wall, which includes only -Wstrict-aliasing. This bug is about -Wstrict-aliasing=2. It is documented as warning for "all code which might break the strict aliasing rules that the compiler is using for optimization". I certainly agree that it is reasonable not to warn when only -Wstrict-aliasing is given, but if you don't want to warn here either, would it be fair to ask to at least update the documentation?
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23106