raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=172f6000d68a4c157b2d015aa1f32f91c5d180ae

commit 172f6000d68a4c157b2d015aa1f32f91c5d180ae
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Nov 6 17:32:48 2018 +0000

    evas mempool bench - fix warning about unused param
    
    unused in some ifdefs - so make as unused.
---
 src/benchmarks/eina/evas_mempool.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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);

-- 


Reply via email to