summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-03-12 12:54:44 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-03-12 15:58:42 +0900
commitc945896c263821cd82128dfb69a11f7d6110daac (patch)
treeb29d85de28ab16b66cb5220f72f133e61905fa8f /src/lib/ecore
parent15aae2c0a4b9f59199395884439626de39e80e62 (diff)
ecore: fix compiler warning when compiling with Fibers.
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/ecore_coroutine.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ecore/ecore_coroutine.c b/src/lib/ecore/ecore_coroutine.c
index fa023be3e8..1e88284295 100644
--- a/src/lib/ecore/ecore_coroutine.c
+++ b/src/lib/ecore/ecore_coroutine.c
@@ -129,7 +129,6 @@ _ecore_coroutine_setjmp(Ecore_Coroutine *coro)
129 129
130#if defined(USE_FIBERS) 130#if defined(USE_FIBERS)
131static void *caller; 131static void *caller;
132static void *callee;
133#elif defined(USE_UCONTEXT) 132#elif defined(USE_UCONTEXT)
134static ucontext_t caller; 133static ucontext_t caller;
135static ucontext_t callee; 134static ucontext_t callee;
@@ -167,7 +166,9 @@ EAPI Ecore_Coroutine *
167ecore_coroutine_add(int stack_size, Ecore_Coroutine_Cb func, void *data) 166ecore_coroutine_add(int stack_size, Ecore_Coroutine_Cb func, void *data)
168{ 167{
169 Ecore_Coroutine *coro; 168 Ecore_Coroutine *coro;
169#ifndef USE_FIBERS
170 unsigned char *stack; 170 unsigned char *stack;
171#endif
171 172
172 if (stack_size <= 0) 173 if (stack_size <= 0)
173 { 174 {
@@ -187,7 +188,9 @@ ecore_coroutine_add(int stack_size, Ecore_Coroutine_Cb func, void *data)
187 coro = malloc(sizeof (Ecore_Coroutine) + stack_size - 1); 188 coro = malloc(sizeof (Ecore_Coroutine) + stack_size - 1);
188 if (!coro) return NULL; 189 if (!coro) return NULL;
189 190
191#ifdef USE_FIBERS
190 stack = coro->stack; 192 stack = coro->stack;
193#endif
191 194
192#ifdef USE_VALGRIND 195#ifdef USE_VALGRIND
193 coro->vg_stack_id = VALGRIND_STACK_REGISTER(stack, stack + stack_size); 196 coro->vg_stack_id = VALGRIND_STACK_REGISTER(stack, stack + stack_size);