From 181463c271fb920ca789d2e8bf41fa415be694a8 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 20 Jul 2018 21:39:14 +0000 Subject: libcpp: remove redundant parameter from rich_location::set_range gcc/c-family/ChangeLog: * c-common.c (c_cpp_error): Remove redundant "line_table" parameter from call to rich_location::set_range. (maybe_suggest_missing_token_insertion): Likewise. gcc/ChangeLog: * pretty-print.c (text_info::set_location): Remove redundant "line_table" parameter from call to rich_location::set_range. libcpp/ChangeLog: * include/line-map.h (rich_location::set_range): Remove redundant line_maps * parameter. * line-map.c (rich_location::set_range): Likewise. From-SVN: r262913 --- libcpp/include/line-map.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libcpp/include') diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h index ba1750d..a4baa49 100644 --- a/libcpp/include/line-map.h +++ b/libcpp/include/line-map.h @@ -1639,8 +1639,7 @@ class rich_location add_range (source_location loc, bool show_caret_p); void - set_range (line_maps *set, unsigned int idx, source_location loc, - bool show_caret_p); + set_range (unsigned int idx, source_location loc, bool show_caret_p); unsigned int get_num_locations () const { return m_ranges.count (); } -- cgit v1.1