From 92b638845d0564991c3ae8d739bc67e8d52b597d Mon Sep 17 00:00:00 2001 From: mpolacek Date: Mon, 5 Jan 2015 12:03:57 +0000 Subject: PR c/64423 c-family/ * c-common.c (warn_array_subscript_with_type_char): Add location_t parameter. Use it. * c-common.h (warn_array_subscript_with_type_char): Update declaration. c/ * c-typeck.c (build_array_ref): Pass loc down to warn_array_subscript_with_type_char. cp/ * typeck.c (cp_build_array_ref): Pass loc down to warn_array_subscript_with_type_char. testsuite/ * gcc.dg/pr64423.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219186 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c/ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/c/ChangeLog') diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 1661747d604..7a0eda0dcef 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,9 @@ +2015-01-05 Marek Polacek + + PR c/64423 + * c-typeck.c (build_array_ref): Pass loc down to + warn_array_subscript_with_type_char. + 2014-12-20 Martin Uecker * c-typeck.c: New behavious for pointers to arrays with qualifiers -- cgit v1.2.1