Small pool-allocator fallback.

* alloc-pool.h: Add ATTRIBUTE_UNUSED for
	a function local variabled.

From-SVN: r223974
This commit is contained in:
Martin Liska 2015-06-01 15:01:12 +02:00 committed by Martin Liska
parent fdc5c392fe
commit c547dbce4a
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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