http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58286
Bug ID: 58286 Summary: Need option to make incompatible pointer types into compiler errors Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: ryao at gentoo dot org Created attachment 30733 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30733&action=edit Sample program that illustrates warning that cannot be selectively converted into an error Commandline options to change certain warnings into error messages are useful when designing autotools checks. -Werror can be used for this, but warnings like "warning: SSE instruction set disabled, using 387 arithmetics [enabled by default]" will cause -Werror to make autotools checks that should succeed fail. That broke an autotools check against the Linux kernel API in the ZFSOnLinux SPL. I have attached a sample program that demonstrates the warning that needs to be made into an error for the autotools check to succeed. Clang supports -Werror=incompatible-pointer-types, which selectively converts the warning into an error. GCC does not appear to support that option under that name or any other.