------- Comment #7 from steven at gcc dot gnu dot org 2009-08-08 22:35 ------- I believe this should be closed as WONTFIX. Warnings exist to indicate things in the program that are almost certainly wrong. In this case, the only way to really avoid false positives is to look at the context of the sizeof, which is more something a static checker would do.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25702