]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/58286 (Need option to make incompatible pointer type warnings into compiler...
authorMarek Polacek <polacek@redhat.com>
Tue, 1 Jul 2014 08:31:58 +0000 (08:31 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 1 Jul 2014 08:31:58 +0000 (08:31 +0000)
commitd5c3d343bdc26d8d16d2a3b20c25dce3c619ff69
tree877b640f90c7fa56352477c59e8e3116c904da16
parente55637b71514b1f2106980ff1e8951d5d072f9c4
re PR c/58286 (Need option to make incompatible pointer type warnings into compiler errors)

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.

From-SVN: r212192
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wincompatible-pointer-types.c [new file with mode: 0644]