From 3022503aa5dce605df7fbd4dc48b9fc00b10cd06 Mon Sep 17 00:00:00 2001 From: Lauro Moura Date: Sat, 4 Jun 2016 13:51:42 -0300 Subject: [PATCH] eo: Fix compilation of benchmark - Missing Eo* self in method declarations. - Gcc complaining about variable-sized object being initialized. --- src/benchmarks/eo/class_simple.h | 4 ++-- src/benchmarks/eo/eo_bench_callbacks.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/benchmarks/eo/class_simple.h b/src/benchmarks/eo/class_simple.h index 6460b0a5f5..ecfbfa7f99 100644 --- a/src/benchmarks/eo/class_simple.h +++ b/src/benchmarks/eo/class_simple.h @@ -6,10 +6,10 @@ typedef struct int a; } Simple_Public_Data; -EAPI void simple_a_set(int a); +EAPI void simple_a_set(Eo *self, int a); /* Calls simple_other_call(other, obj) and then simple_other_call(obj, other) * for 'times' times in order to grow the call stack on other objects. */ -EAPI void simple_other_call(Eo *other, int times); +EAPI void simple_other_call(Eo*self, Eo *other, int times); #define SIMPLE_CLASS simple_class_get() const Eo_Class *simple_class_get(void); diff --git a/src/benchmarks/eo/eo_bench_callbacks.c b/src/benchmarks/eo/eo_bench_callbacks.c index ab779f8417..c06e66e40f 100644 --- a/src/benchmarks/eo/eo_bench_callbacks.c +++ b/src/benchmarks/eo/eo_bench_callbacks.c @@ -50,7 +50,7 @@ bench_eo_callbacks_call(int request) const int len = EINA_C_ARRAY_LENGTH(distribution); int i, j; - Eo *obj[len] = { 0 }; + Eo *obj[len]; for (i = 0 ; i < len ; i++) { obj[i] = eo_add(SIMPLE_CLASS, NULL);