Commit 5773302e authored by Mikael Ronstrom's avatar Mikael Ronstrom

Remove compiler warnings

parent 1732095b
...@@ -330,6 +330,7 @@ mem_area_alloc( ...@@ -330,6 +330,7 @@ mem_area_alloc(
mem_pool_t* pool) /* in: memory pool */ mem_pool_t* pool) /* in: memory pool */
{ {
#ifdef UNIV_DISABLE_MEM_POOL #ifdef UNIV_DISABLE_MEM_POOL
(void)pool; /* Remove compiler warning */
return malloc(size); return malloc(size);
#else /* UNIV_DISABLE_MEM_POOL */ #else /* UNIV_DISABLE_MEM_POOL */
mem_area_t* area; mem_area_t* area;
...@@ -464,6 +465,7 @@ mem_area_free( ...@@ -464,6 +465,7 @@ mem_area_free(
mem_pool_t* pool) /* in: memory pool */ mem_pool_t* pool) /* in: memory pool */
{ {
#ifdef UNIV_DISABLE_MEM_POOL #ifdef UNIV_DISABLE_MEM_POOL
(void)pool; /* Remove compiler warning */
free(ptr); free(ptr);
#else /* UNIV_DISABLE_MEM_POOL */ #else /* UNIV_DISABLE_MEM_POOL */
mem_area_t* area; mem_area_t* area;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment