From c547dbce4aa51743690c6e7270cf99098c89ba6a Mon Sep 17 00:00:00 2001 From: Martin Liska <mliska@suse.cz> Date: Mon, 1 Jun 2015 15:01:12 +0200 Subject: [PATCH] Small pool-allocator fallback. * alloc-pool.h: Add ATTRIBUTE_UNUSED for a function local variabled. From-SVN: r223974 --- gcc/ChangeLog | 5 +++++ gcc/alloc-pool.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f96a2ef8d0b7..9e18b50b23e6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-06-01 Martin Liska <mliska@suse.cz> + + * alloc-pool.h: Add ATTRIBUTE_UNUSED for + a function local variable. + 2015-06-01 Martin Liska <mliska@suse.cz> * alloc-pool.c (create_alloc_pool): Remove. diff --git a/gcc/alloc-pool.h b/gcc/alloc-pool.h index 65087265527d..96a1342b9fa9 100644 --- a/gcc/alloc-pool.h +++ b/gcc/alloc-pool.h @@ -359,7 +359,7 @@ pool_allocator<T>::remove (T *object) gcc_checking_assert (m_initialized); allocation_pool_list *header; - int size; + int size ATTRIBUTE_UNUSED; size = m_elt_size - offsetof (allocation_object<T>, u.data); #ifdef ENABLE_CHECKING -- GitLab