summaryrefslogtreecommitdiff
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
parent96f0783e04514559f3e2f185076bf6588461ede5 (diff)
eo: Fix compilation of benchmark
- Missing Eo* self in method declarations. - Gcc complaining about variable-sized object being initialized.
-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
6 int a; 6 int a;
7} Simple_Public_Data; 7} Simple_Public_Data;
8 8
9EAPI void simple_a_set(int a); 9EAPI void simple_a_set(Eo *self, int a);
10/* Calls simple_other_call(other, obj) and then simple_other_call(obj, other) 10/* Calls simple_other_call(other, obj) and then simple_other_call(obj, other)
11 * for 'times' times in order to grow the call stack on other objects. */ 11 * for 'times' times in order to grow the call stack on other objects. */
12EAPI void simple_other_call(Eo *other, int times); 12EAPI void simple_other_call(Eo*self, Eo *other, int times);
13 13
14#define SIMPLE_CLASS simple_class_get() 14#define SIMPLE_CLASS simple_class_get()
15const Eo_Class *simple_class_get(void); 15const 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)
50 50
51 const int len = EINA_C_ARRAY_LENGTH(distribution); 51 const int len = EINA_C_ARRAY_LENGTH(distribution);
52 int i, j; 52 int i, j;
53 Eo *obj[len] = { 0 }; 53 Eo *obj[len];
54 for (i = 0 ; i < len ; i++) 54 for (i = 0 ; i < len ; i++)
55 { 55 {
56 obj[i] = eo_add(SIMPLE_CLASS, NULL); 56 obj[i] = eo_add(SIMPLE_CLASS, NULL);