Small pool-allocator fallback.
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jun 2015 13:01:12 +0000 (13:01 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jun 2015 13:01:12 +0000 (13:01 +0000)
* alloc-pool.h: Add ATTRIBUTE_UNUSED for
a function local variabled.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223974 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/alloc-pool.h

index f96a2ef..9e18b50 100644 (file)
@@ -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.
index 6508726..96a1342 100644 (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