------- Comment #14 from rguenth at gcc dot gnu dot org 2009-01-12 14:51 ------- Ok, how about -Wstrict-aliasing=3 warning only if both the dereference and the declaration are not from system-headers (this is then the default for -Wall) and with -Wstrict-aliasing=2 (or =1) warn if either of them is not from system-headers?
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38477