[Bug c/62294] [4.9 Regression] Missing "passing argument [...] from incompatible pointer type" warning.

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 3 12:54:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62294

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Sep  3 12:54:06 2014
New Revision: 214874

URL: https://gcc.gnu.org/viewcvs?rev=214874&root=gcc&view=rev
Log:
    PR c/62294
    * c-typeck.c (convert_arguments): Get location of a parameter.  Change
    error and warning calls to error_at and warning_at.  Pass location of
    a parameter to it.
    (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
    WARN_FOR_QUALIFIERS.  Pass expr_loc to those.

    * gcc.dg/pr56724-1.c: New test.
    * gcc.dg/pr56724-2.c: New test.
    * gcc.dg/pr62294.c: New test.
    * gcc.dg/pr62294.h: New file.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr56724-1.c
    branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr56724-2.c
    branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr62294.c
    branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr62294.h
Modified:
    branches/gcc-4_9-branch/gcc/c/ChangeLog
    branches/gcc-4_9-branch/gcc/c/c-typeck.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list