This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]