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

--- Comment #3 from Bernd Schmidt <bernds at gcc dot gnu.org> ---
Author: bernds
Date: Wed Jan 13 20:03:26 2016
New Revision: 232345

URL: https://gcc.gnu.org/viewcvs?rev=232345&root=gcc&view=rev
Log:
Improve warning locations (PR66208)

        PR c/66208
        * c-common.c (check_function_nonnull): Remove unnecessary declaration.
        Add new arg loc and pass it down as context.
        (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
        to the location to use for the warning.
        (check_function_arguments): New arg loc.  All callers changed.  Pass
        it to check_function_nonnull.
        * c-common.h (check_function_arguments): Adjust declaration.

testsuite/
        PR c/66208
        * c-c++-common/pr66208.c: New file.


Added:
    trunk/gcc/testsuite/c-c++-common/pr66208.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-family/c-common.c
    trunk/gcc/c-family/c-common.h
    trunk/gcc/c/c-typeck.c
    trunk/gcc/cp/call.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to