evas mempool bench - fix warning about unused param

unused in some ifdefs - so make as unused.
This commit is contained in:
Carsten Haitzler 2018-11-06 17:32:48 +00:00
parent e8b9492600
commit 172f6000d6
1 changed files with 7 additions and 1 deletions

View File

@ -8,6 +8,12 @@
#include "Evas_Data.h"
#include "evas_mempool.h"
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
# define UNUSED __attribute__ ((__unused__))
#else
# define UNUSED
#endif
//#define NOPOOL
typedef struct _Pool Pool;
@ -56,7 +62,7 @@ _evas_mp_pool_free(Pool *p)
}
void *
evas_mempool_malloc(Evas_Mempool *pool, int size)
evas_mempool_malloc(Evas_Mempool *pool, int size UNUSED)
{
#ifdef NOPOOL
return malloc(size);