summaryrefslogtreecommitdiff
path: root/src/benchmarks
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-06 17:32:48 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 11:43:59 +0000
commit172f6000d68a4c157b2d015aa1f32f91c5d180ae (patch)
tree1a690107cc74979a97d39d642269978f23c0cd3b /src/benchmarks
parente8b9492600e33c4a649cb4d1712c2ad0235099af (diff)
evas mempool bench - fix warning about unused param
unused in some ifdefs - so make as unused.
Diffstat (limited to 'src/benchmarks')
-rw-r--r--src/benchmarks/eina/evas_mempool.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/benchmarks/eina/evas_mempool.c b/src/benchmarks/eina/evas_mempool.c
index fbc48fa..40df42f 100644
--- a/src/benchmarks/eina/evas_mempool.c
+++ b/src/benchmarks/eina/evas_mempool.c
@@ -8,6 +8,12 @@
8#include "Evas_Data.h" 8#include "Evas_Data.h"
9#include "evas_mempool.h" 9#include "evas_mempool.h"
10 10
11#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
12# define UNUSED __attribute__ ((__unused__))
13#else
14# define UNUSED
15#endif
16
11//#define NOPOOL 17//#define NOPOOL
12 18
13typedef struct _Pool Pool; 19typedef struct _Pool Pool;
@@ -56,7 +62,7 @@ _evas_mp_pool_free(Pool *p)
56} 62}
57 63
58void * 64void *
59evas_mempool_malloc(Evas_Mempool *pool, int size) 65evas_mempool_malloc(Evas_Mempool *pool, int size UNUSED)
60{ 66{
61#ifdef NOPOOL 67#ifdef NOPOOL
62 return malloc(size); 68 return malloc(size);