aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog6
-rw-r--r--libcpp/include/line-map.h3
-rw-r--r--libcpp/line-map.c4
3 files changed, 9 insertions, 4 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index c57d546..c72804f 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,9 @@
+2018-07-20 David Malcolm <dmalcolm@redhat.com>
+
+ * include/line-map.h (rich_location::set_range): Remove redundant
+ line_maps * parameter.
+ * line-map.c (rich_location::set_range): Likewise.
+
2018-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR 69558
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 (); }
diff --git a/libcpp/line-map.c b/libcpp/line-map.c
index 1051022..a1a765f 100644
--- a/libcpp/line-map.c
+++ b/libcpp/line-map.c
@@ -2104,8 +2104,8 @@ rich_location::add_range (source_location loc, bool show_caret_p)
- the "%C" and "%L" format codes in the Fortran frontend. */
void
-rich_location::set_range (line_maps * /*set*/, unsigned int idx,
- source_location loc, bool show_caret_p)
+rich_location::set_range (unsigned int idx, source_location loc,
+ bool show_caret_p)
{
/* We can either overwrite an existing range, or add one exactly
on the end of the array. */