diff options
author | Martin Liska <mliska@suse.cz> | 2019-06-27 10:21:47 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-06-27 08:21:47 +0000 |
commit | 721bd2102646a498af32731e7f9f6f46fe10557f (patch) | |
tree | 27db5bcc1161c12bf888f9030c8a31f72872be21 | |
parent | c2f7a665a184e4ff00a6ac3fc147f63f276cc5a5 (diff) | |
download | gcc-721bd2102646a498af32731e7f9f6f46fe10557f.zip gcc-721bd2102646a498af32731e7f9f6f46fe10557f.tar.gz gcc-721bd2102646a498af32731e7f9f6f46fe10557f.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/symbol-summary.h | 14 |
2 files changed, 14 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a96eb5..16d26bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +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> PR target/62147 diff --git a/gcc/symbol-summary.h b/gcc/symbol-summary.h index 0219f3a..e90d448 100644 --- a/gcc/symbol-summary.h +++ b/gcc/symbol-summary.h @@ -362,7 +362,7 @@ public: { for (unsigned i = 0; i < m_vector->length (); i++) 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 @@ -846,7 +846,7 @@ public: { for (unsigned i = 0; i < m_vector->length (); i++) if ((*m_vector[i]) != NULL) - f ((*m_vector)[i]); + f ((*m_vector)[i], a); } /* Getter for summary callgraph edge pointer. @@ -966,21 +966,21 @@ fast_call_summary<T *, V>::is_ggc () template <typename T> 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> 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> void -gt_pch_nx (fast_call_summary<T *, va_heap>* const& summary, - gt_pointer_operator op, - void *cookie) +gt_pch_nx (fast_call_summary<T *, va_heap>* const& summary ATTRIBUTE_UNUSED, + gt_pointer_operator op ATTRIBUTE_UNUSED, + void *cookie ATTRIBUTE_UNUSED) { } |