------- Comment #2 from joseph at codesourcery dot com  2010-06-20 22:17 -------
Subject: Re:  gcc does not warn about casting non-variadic types
 to variadic types

It's not the conversion that's undefined, but the call.  You could have an 
option to warn for all function pointer conversions to incompatible 
function pointer types (but they have reasonable uses as there isn't a 
generic function pointer type like void *) - or you could have the 
optimizers detect calls to incompatibly cast types and warn then like the 
front ends does when the cast appears directly in the call.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44586

Reply via email to