------- Comment #3 from pinskia at gcc dot gnu dot org 2010-08-04 15:44 ------- Since the compiler does not know that f() will never return, it is hard problem to solve. If you mark f with the attribute noreturn, the warning will disappear.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45180