------- Comment #1 from redi at gcc dot gnu dot org 2009-08-21 17:03 ------- -Werror=int-to-pointer-cast will make one class of warnings into errors, but I don't think there's a switch to handle the other cases your script detects.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41142