diff options
author | Marek Polacek <polacek@redhat.com> | 2014-05-10 20:03:57 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2014-05-10 20:03:57 +0000 |
commit | d033409e943fd9c584a3488df2709671e30555a6 (patch) | |
tree | fdf170b705a741473342bef1cba458b93231ff9f /gcc/fortran/dump-parse-tree.c | |
parent | 00599202676518ba22834e3fb5d818dc9ff8fa98 (diff) | |
download | gcc-d033409e943fd9c584a3488df2709671e30555a6.zip gcc-d033409e943fd9c584a3488df2709671e30555a6.tar.gz gcc-d033409e943fd9c584a3488df2709671e30555a6.tar.bz2 |
c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to maybe_warn_string_init.
* c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
maybe_warn_string_init.
(c_parser_postfix_expression_after_paren_type): Pass type_loc to
maybe_warn_string_init.
* c-tree.h (maybe_warn_string_init): Update declaration.
* c-typeck.c (maybe_warn_string_init): Add location parameter.
Call pedwarn_init with loc instead of with input_location.
(digest_init): Pass init_loc to maybe_warn_string_init.
(pop_init_level): Call pedwarn_init with loc instead of with
input_location.
(set_init_index): Likewise.
(process_init_element): Likewise.
* gcc.dg/pedwarn-init.c: New test.
* gcc.dg/init-string-1.c: Adjust dg-error.
From-SVN: r210300
Diffstat (limited to 'gcc/fortran/dump-parse-tree.c')
0 files changed, 0 insertions, 0 deletions