Commit 721bd210 by Martin Liska Committed by Martin Liska

Fix warnings seen by clang in gcc/symbol-summary.h.

2019-06-27  Martin Liska  <mliska@suse.cz>

	* symbol-summary.h (traverse): Pass
	argument a to the call of callback.
	(gt_ggc_mx): Mark arguments as unused.
	(gt_pch_nx): Likewise.

From-SVN: r272734
parent c2f7a665
2019-06-27 Martin Liska <mliska@suse.cz>
* symbol-summary.h (traverse): Pass
argument a to the call of callback.
(gt_ggc_mx): Mark arguments as unused.
(gt_pch_nx): Likewise.
2019-06-27 Kewen Lin <linkw@gcc.gnu.org> 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
PR target/62147 PR target/62147
......
...@@ -362,7 +362,7 @@ public: ...@@ -362,7 +362,7 @@ public:
{ {
for (unsigned i = 0; i < m_vector->length (); i++) for (unsigned i = 0; i < m_vector->length (); i++)
if ((*m_vector[i]) != NULL) if ((*m_vector[i]) != NULL)
f ((*m_vector)[i]); f ((*m_vector)[i], a);
} }
/* Getter for summary callgraph node pointer. If a summary for a node /* Getter for summary callgraph node pointer. If a summary for a node
...@@ -846,7 +846,7 @@ public: ...@@ -846,7 +846,7 @@ public:
{ {
for (unsigned i = 0; i < m_vector->length (); i++) for (unsigned i = 0; i < m_vector->length (); i++)
if ((*m_vector[i]) != NULL) if ((*m_vector[i]) != NULL)
f ((*m_vector)[i]); f ((*m_vector)[i], a);
} }
/* Getter for summary callgraph edge pointer. /* Getter for summary callgraph edge pointer.
...@@ -966,21 +966,21 @@ fast_call_summary<T *, V>::is_ggc () ...@@ -966,21 +966,21 @@ fast_call_summary<T *, V>::is_ggc ()
template <typename T> template <typename T>
void void
gt_ggc_mx (fast_call_summary<T *, va_heap>* const &summary) gt_ggc_mx (fast_call_summary<T *, va_heap>* const &summary ATTRIBUTE_UNUSED)
{ {
} }
template <typename T> template <typename T>
void void
gt_pch_nx (fast_call_summary<T *, va_heap>* const &summary) gt_pch_nx (fast_call_summary<T *, va_heap>* const &summary ATTRIBUTE_UNUSED)
{ {
} }
template <typename T> template <typename T>
void void
gt_pch_nx (fast_call_summary<T *, va_heap>* const& summary, gt_pch_nx (fast_call_summary<T *, va_heap>* const& summary ATTRIBUTE_UNUSED,
gt_pointer_operator op, gt_pointer_operator op ATTRIBUTE_UNUSED,
void *cookie) void *cookie ATTRIBUTE_UNUSED)
{ {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment