[Bug c/58286] Need option to make incompatible pointer type warnings into compiler errors
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 1 08:32:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58286
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Jul 1 08:31:58 2014
New Revision: 212192
URL: https://gcc.gnu.org/viewcvs?rev=212192&root=gcc&view=rev
Log:
PR c/58286
* doc/invoke.texi: Document -Wincompatible-pointer-types.
c-family/
* c.opt (Wincompatible-pointer-types): New option.
c/
* c-typeck.c (convert_for_assignment): Pass
OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
testsuite/
* gcc.dg/Wincompatible-pointer-types.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/Wincompatible-pointer-types.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c.opt
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/doc/invoke.texi
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list