From d40711aa68b41790dac747008cf849ac965c4793 Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 24 Sep 2007 14:54:41 +0000 Subject: [PATCH] This variable is only used with threads. Protect it with ifdef git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4705 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/xbt/context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xbt/context.c b/src/xbt/context.c index 8e3778aa08..4d7f81850d 100644 --- a/src/xbt/context.c +++ b/src/xbt/context.c @@ -361,7 +361,9 @@ void xbt_context_empty_trash(void) static void __xbt_context_yield(xbt_context_t context) { +#ifdef CONTEXT_THREADS xbt_context_t self; +#endif xbt_assert0(current_context, "You have to call context_init() first."); xbt_assert0(context,"Invalid argument"); -- 2.20.1