https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109214
sandra at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sandra at gcc dot gnu.org --- Comment #2 from sandra at gcc dot gnu.org --- The option that controls the warning for casts between function and data pointers is -Wpedantic. It's not explicitly documented as doing that, but the description of the option starts out: "Issue all the warnings demanded by strict ISO C and ISO C++; diagnose all programs that use forbidden extensions..." It's also already documented with -Wpedantic that the way to suppress pedantic warnings locally is by adding the __extension__ keyword before the expression that triggers them. IIUC it is wired into GCC that function and data pointers have the same size (Pmode), but it's at least theoretically possible that a function pointer might actually point to a descriptor object instead of a raw code address. I'd think this is ABI-specific, anyway. I'm not sure what additional documentation needs to be added here, or if what's being requested is implementing a separate option/attribute just to control function pointer conversion warnings.