aboutsummaryrefslogtreecommitdiffstats
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
parentevas list benchmarks - fix warning about if guarding (diff)
downloadefl-172f6000d68a4c157b2d015aa1f32f91c5d180ae.tar.gz
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 fbc48fa19a..40df42fd25 100644
--- a/src/benchmarks/eina/evas_mempool.c
+++ b/src/benchmarks/eina/evas_mempool.c
@@ -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);