From: mquinson Date: Mon, 24 Sep 2007 14:54:41 +0000 (+0000) Subject: This variable is only used with threads. Protect it with ifdef X-Git-Tag: v3.3~1086 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d40711aa68b41790dac747008cf849ac965c4793 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 --- 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");