aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmarks
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2016-06-04 13:51:42 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-05 21:57:08 -0300
commit3022503aa5dce605df7fbd4dc48b9fc00b10cd06 (patch)
tree9120c88a5882415289cfe91d40bbc8c2d93ab568 /src/benchmarks
parenteolian: Fix generating pointer promises for class types (diff)
downloadefl-3022503aa5dce605df7fbd4dc48b9fc00b10cd06.tar.gz
eo: Fix compilation of benchmark
- Missing Eo* self in method declarations. - Gcc complaining about variable-sized object being initialized.
Diffstat (limited to 'src/benchmarks')
-rw-r--r--src/benchmarks/eo/class_simple.h4
-rw-r--r--src/benchmarks/eo/eo_bench_callbacks.c2
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);