Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This variable is only used with threads. Protect it with ifdef
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 24 Sep 2007 14:54:41 +0000 (14:54 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 24 Sep 2007 14:54:41 +0000 (14:54 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4705 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/xbt/context.c

index 8e3778a..4d7f818 100644 (file)
@@ -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");