cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3a6ccab3adada2daf29094c2fec661f71ac981ab

commit 3a6ccab3adada2daf29094c2fec661f71ac981ab
Author: Vincent Torri <vincent.to...@gmail.com>
Date:   Thu May 14 09:19:53 2015 +0200

    eina: fix warning on Windows.
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/eina/eina_thread.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/eina/eina_thread.c b/src/lib/eina/eina_thread.c
index 86cb8a9..cbc52ad 100644
--- a/src/lib/eina/eina_thread.c
+++ b/src/lib/eina/eina_thread.c
@@ -102,14 +102,16 @@ _eina_internal_call(void *context)
 {
    Eina_Thread_Call *c = context;
    void *r;
+#ifdef EINA_HAVE_DEBUG
    pthread_t self;
+#endif
 
    if (c->prio == EINA_THREAD_BACKGROUND ||
        c->prio == EINA_THREAD_IDLE)
      eina_sched_prio_drop();
 
-   self = pthread_self();
 #ifdef EINA_HAVE_DEBUG
+   self = pthread_self();
    _eina_debug_thread_add(&self);
 #endif
    r = c->func((void*) c->data, eina_thread_self());

-- 


Reply via email to