diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/alloc-pool.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f96a2ef..9e18b50 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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. (empty_alloc_pool): Likewise. (free_alloc_pool): Likewise. diff --git a/gcc/alloc-pool.h b/gcc/alloc-pool.h index 6508726..96a1342 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 |